Topics

R

About this topic: Articles tagged __TAG__

Showing 148 articles

Topics

Articles

Showing 148 articles

How-tos How to Remove the First Character From a String in R This article demonstrates three techniques to remove the first character from a string or a vector of strings. It demonstrates the use of the substr function, the sub-function with … How-tos How to Create Empty Matrix in R This tutorial demonstrates the way to create an empty matrix in R. How-tos How to Check Variable Data Types in R Learn when to use typeof(), class(), str(), type predicates, and sapply() to inspect R objects and data-frame columns. How-tos How to Use the diff Function in R Learn how R's diff() calculates consecutive and lagged differences, applies repeated differences, and changes vector length. How-tos How to Use the Source Function to Run Another R Script Learn how to use base R's source() to run a main script from a wrapper, choose absolute or relative paths, and use chdir so the main script can find resources beside it or in … How-tos The table() Function in R Learn to use table() and prop.table() in R to count categories, calculate proportions, and summarize combinations of two variables. How-tos How to Create Grouped Boxplots in R This article introduces how to create grouped boxplots in R How-tos How to Drop Multiple Columns From a Data Frame Using Dplyr Learn how to remove named columns, character-vector selections, ranges, name patterns, numeric suffix ranges, or predicate-matched columns with dplyr. How-tos The replicate() Function in R This tutorial introduces the uses of the replicate() function in R. How-tos How to Apply Function With Multiple Arguments in R Learn how to pass fixed and parallel arguments to R apply-family functions, including apply, mapply, and Map, with examples for matrix margins, list elements, and corresponding … How-tos How to Find the Index of an Element in an R Vector. Learn how to find every matching position in an R vector with which() or the first position for each requested value with match(), including how unmatched values are handled. How-tos How to Comment Out Multilines in R Learn how R comments work, how to comment out selected lines in an editor, and how to prefix copied text with #. How-tos How to Stop Running R Code With the Keyboard or Mouse This article shows how to stop running R code with the keyboard or mouse. How-tos How to Increase the Memory for R Processes This tutorial demonstrates how to increase memory in R. How-tos How to Combine Two Data Frames in R Choose between stacking rows with rbind() or dplyr::bind_rows(), and joining related records by keys with plyr::join() or merge(). How-tos How to Clear the Console in R This article introduces how to clear the R console interactively, offering keyboard shortcuts, command options, and RStudio menu methods. Learn to maintain a tidy workspace for … How-tos ylim() and xlim() in R This tutorial explores how to effectively use ylim() and xlim() in R for setting axis limits in data visualizations. Learn how to enhance your plots with clear examples and … How-tos Use the Tilde Symbol (~) in R Learn what the tilde symbol (~) means in R formulas, use it with lm(), and find its documentation with help(). How-tos How to Calculate Standard Error in R Learn how to calculate the standard error of the mean in R with the base R formula and the std.error() function from plotrix. How-tos How to Remove Duplicate Rows by Column in R This article demonstrates how to remove duplicate rows by column in R How-tos How to Create Side by Side Boxplots in R This article introduces how to create side by side boxplots in R How-tos How to Perform Levene Test in R Perform Levene's test in R with the car package: prepare grouped data, test equal variances, interpret the p-value, and create a boxplot. How-tos How to Install rtools in Windows Learn when Windows R users need Rtools, how to choose a compatible release, install it, check whether R can find build tools, and troubleshoot common setup problems. How-tos How to Check the Version of R Learn how to check the R version in the R console, from a terminal, and inside an R script, and understand which session or executable each method reports.

← All topics