Rstats 101
Home
dplyr
tidyr
Statistics
How-To
How-To Guides
Practical how-to guides for common R programming tasks.
Order By
Default
Tutorial
Tutorial
3 Useful Matrix Functions in R: matrix(), is.matrix() and as.matrix()
Computing Correlation Between Multiple Variables in a dataframe
How To Check If One or More Elements is in a Vector
How To find levels of a factor in R
How to Calculate Rolling Mean in R
How to Compute Compound Interest with Tidyverse
How to Compute row means
How to Convert Numerical Variable into a Categorical Variable in R
How to Convert a List to a dataframe in R
How to Create a dataframe from vectors in R
How to Find difference between two dates as days, weeks, months and years
How to Generate Random Numbers from Uniform Distribution
How to Measure Running Time in R (with two examples)
How to Randomly Replace Values in a Matrix to NAs
How to Replace NA values in a dataframe with Zeros?
How to Replace NA values with Column Mean
How to Replace NAs with Column mean using tidyverse
How to Save Dataframe into XLSX file in R
How to add currency symbols to columns of a table with gt()
How to calculate cumulative sum in R
How to compute annualized return of a stock with tidyverse
How to compute inverse of a matrix in R
How to compute mean in R
How to compute proportion with tidyverse
How to compute row means in R
How to convert a matrix to a tidy table
How to create a directory if it does not exist in R
How to find installed R version from RStudio
How to get product of all elements in a column
How to sort columns alphabetically
How to use cbind() function in R
How to use dollar $ operator in R
How to use outer function in R
List of Built in Datasets in R
Many linear regression models with tidyverse
Remove rows with missing values using drop_na() in R
Remove rows with missing values using na.omit() in R
Simple Barpots and reordering bars in R
Simple linear regression with tidyverse
What is R?
colSums in R - compute sum of all columns in a dataframe or matrix
dplyr if_else(): Create new variable from existing variable
dplyr rename(): How to rename column in r with dplyr
dplyr’s arrange(): Sort a Dataframe Columns
duplicated() function in R: Find duplicated elements in a vector or dataframe
gsub() in R to replace all matching patterns
head() in R to view the first elements
list.files() in R: list files in a directory
ls() in R: list objects/variables in your environment
runif()- generate uniform random numbers
sample() function in R for random sampling
seq() function to create sequences
tidyverse all_of(): select columns from a vector
No matching items