• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Rstats 101

Learn R Programming Tips & Tricks for Statistics and Data Science

  • Home
  • About
    • Privacy Policy
  • Show Search
Hide Search

rstats101

How to compute inverse of a matrix in R

rstats101 · January 20, 2023 ·

In this tutorial, we will show how to compute inverse of matrix in R. Computing inverse of a matrix is core to multiple applications. In linear algebra, inverse of a matrix is defined as a matrix that, when multiplied by the original matrix, results in the identity matrix. … [Read more...] about How to compute inverse of a matrix in R

Filed Under: R Function, rstats101, solve() Tagged With: matrix inverse in R

How to add Prefix/Suffix to Column Names of a dataframe in R

rstats101 · January 11, 2023 ·

In this tutorial we will learn how to add a prefix or a suffix to column names of a data frame in R. We will use dplyr's rename_with() function to add prefix/suffix to column names. dplyr's rename_with() function belongs to another renaming function in dplyr, rename() that is … [Read more...] about How to add Prefix/Suffix to Column Names of a dataframe in R

Filed Under: dplyr, dplyr rename_with(), rstats101 Tagged With: add prefix to column names, add prefix/suffix to select column names, add suffix to column names

How to Measure Running Time in R (with two examples)

rstats101 · January 5, 2023 ·

Running time in R with Sys.time() and system.time()

In this tutorial, we will learn how to measure execution time in R. We will learn two ways, using Sys.time() and system.time, of measuring execution time in R. Both the methods to measure running time are readily available in base R and do need use any outside R packages. … [Read more...] about How to Measure Running Time in R (with two examples)

Filed Under: rstats101, Sys.time(), system.time() Tagged With: running time in R

dplyr arrange: Sort rows by one or more variables

rstats101 · January 5, 2023 ·

dplyr arrange(): Sort by multiple columns example

In this tutorial, we will learn how to sort a dataframe by one or more columns using dplyr's arrange() function. dplyr's arrange() function is one of the important functions in dplyr that lets you use dplyr to sort rows. By sorting, we mean dplyr's arrange() changes the order … [Read more...] about dplyr arrange: Sort rows by one or more variables

Filed Under: dplyr arrange(), rstats101 Tagged With: dplyr sort by a column, dplyr sort by multiple columns

How to use cbind() function in R

rstats101 · December 22, 2022 ·

In this tutorial, we will learn how to use cbind() function in R. The cbind() function in the R programming language is used to combine vectors, matrices, or data frames by columns. cbind() stands for column bind as it combines by column. The basic syntax for using cbind() is … [Read more...] about How to use cbind() function in R

Filed Under: rstats101 Tagged With: cbind function in R, r cbind example

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Go to Next Page »

Primary Sidebar

Recent Posts

  • How to create a nested dataframe with lists
  • How to compute proportion with tidyverse
  • How to Compute Z-Score of Multiple Columns
  • How to drop unused level of factor variable in R
  • How to compute Z-score

Categories

%in% arrange() as.data.frame as_tibble built-in data R colSums() R cor() in R data.frame dplyr dplyr across() dplyr group_by() dplyr rename() dplyr rowwise() dplyr row_number() dplyr select() dplyr slice_max() dplyr slice_sample() drop_na R duplicated() gsub head() impute with mean values is.element() linear regression matrix() function na.omit R NAs in R near() R openxlsx pivot_longer() prod() R.version replace NA replace NAs tidyverse R Function rstats rstats101 R version scale() sessionInfo() t.test() tidyr tidyselect tidyverse write.xlsx

Copyright © 2025 · Daily Dish Pro on Genesis Framework · WordPress · Log in

Go to mobile version