• 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

dplyr rows_update(): Modify existing rows

rstats101 · September 20, 2024 ·

In this post, we will learn how to use dplyr's rows_update() function with examples. dplyr's rows_update() function is a useful function to modify or update specific rows in a data frame based on a matching values in key column. It takes in two dataframes x and y, updates … [Read more...] about dplyr rows_update(): Modify existing rows

Filed Under: dplyr rows_update(), rstats101 Tagged With: update rows with rows_update()

dplyr n_distinct(): count unique elements or rows

rstats101 · September 14, 2024 ·

In this post, we will learn how to use dplyr's n_distinct() function to count the number of unique or distinct values in one or more vectors or columns of a dataframe. dplyr's n_distinct() is very useful when you are working with a dataframe and need to know how many unique … [Read more...] about dplyr n_distinct(): count unique elements or rows

Filed Under: dplyr n_distinct(), rstats101 Tagged With: n_distinct() to count unique elements

How to perform multiple t-tests using tidyverse

rstats101 · September 3, 2024 ·

How to perform multiple t-tests with tidyverse

In this tutorial, we will learn how to perform multiple t-tests to determine if there is any difference in mean using tidyverse framework. With tidyverse framework, we will use tidyverse packages/functions instead of looping through using a for loop. Let us load the packages … [Read more...] about How to perform multiple t-tests using tidyverse

Filed Under: rstats101, t.test() Tagged With: perform multiple t-tests, t-test with tidyverse

How to select top and bottom rows by a column simultaneously

rstats101 · September 2, 2024 ·

In this tutorial, we will learn how to select top and bottom rows of a dataframe based on the values of a column with tidyverse in R. Here we will see a specific approach to get top and bottom rows when the values of the column of interest has both positive and negative values. … [Read more...] about How to select top and bottom rows by a column simultaneously

Filed Under: dplyr slice_max(), rank(), rstats101 Tagged With: select top and bottom rows

How to Compute Pearson Correlation of Multiple Variables

rstats101 · August 31, 2024 ·

In this tutorial, we will learn how to compute Pearson correlation of multiple variables. We will use two approaches to compute Pearson correlation of multiple variables in a matrix or dataframe. First we will show how to use cor() function in R to compute Pearson correlation … [Read more...] about How to Compute Pearson Correlation of Multiple Variables

Filed Under: cor() in R, rstats101 Tagged With: Pearson correlation, Pearson correlation by matrix multiplication

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