Home Â» Statistical Point Â» R Â» R Operations
Category:

# R Operations

• ## How to Create a Vector of Zeros in R (With Examples)

There are three common ways to create a vector of zeros in R: Method 1: Use numeric() #create vector of 12 zeros…

• ## How to Use LETTERS in R (With Examples)

You can use the LETTERS constant in R to access letters from the alphabet. The following examples show the most common ways…

• ## How to Use createDataPartition() Function in R

You can use the createDataPartition() function from the caret package in R to partition a data frame into training and testing sets…

• ## How to Calculate Lagged Values in R (With Examples)

You can use the lag() function from the dplyr package in R to calculated lagged values. This function uses the following basic…

• ## How to Concatenate Vector of Strings in R (With Examples)

You can use one of the following methods in R to concatenate a vector of strings together: Method 1: Use paste() inÂ …

• ## How to Count Duplicates in R (With Examples)

You can use the following methods to count duplicates in a data frame in R: Method 1: Count Duplicate Values in One…

• ## How to Filter a data.table in R (With Examples)

You can use the following methods to filter the rows of a data.table in R: Method 1: Filter for Rows Based on…

• ## How to Add New Column to Matrix in R (With Examples)

You can use the following methods to add a new column to a matrix in R: Method 1: Add New Column to…

• ## How to Drop Columns by Name in R (With Examples)

There are three common ways to drop columns from a data frame in R by name: Method 1: Use Base R #drop…

• ## How to Convert Numeric to Factor in R (With Examples)

There are two methods you can use to convert a numeric variable to a factor variable in R: Method 1: Use as.factor()…