• 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

R Function

How to get product of all elements in a column

rstats101 · July 1, 2024 ·

In this tutorial we will learn how to compute product of all elements of a column in a dataframe using tidyverse. We will use prod() function in base to multiple all elements of a columns. Let us first load tidyverse. We will create a simple dataframe using tidyverse' … [Read more...] about How to get product of all elements in a column

Filed Under: prod(), R Function, rstats101 Tagged With: product of all elements

How to Compute row means

rstats101 · February 24, 2023 ·

In this tutorial, we will learn how to compute means of rows with tidyverse using dplyr package. We will see multiple examples to compute row means with dplyr. Wee will start with 3. examples of computing row means using rowMeans() and dplyr's row-wise operations on a dataframe … [Read more...] about How to Compute row means

Filed Under: R Function, rstats101 Tagged With: row means with dplyr, row wise mean tidyverse

How to compute row means in R

rstats101 · February 22, 2023 ·

In this tutorial, we will learn about rowMeans() function in base R and use it to calculate mean of all rows in a matrix or a dataframe. We will see two examples to understand the use rowMeans() function. First, we will calculate mean of all rows in a matrix and dataframe with no … [Read more...] about How to compute row means in R

Filed Under: rowMeans() Tagged With: compute Row means in R

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 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

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Interim pages omitted …
  • Page 8
  • 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