• 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 Compute Z-Score of Multiple Columns

rstats101 · October 27, 2024 ·

In this post, we will learn how to compute Z-score of multiple variables (columns) at the same time using tidyverse in R using multiple approaches. First, we will show an example of computing Z-score of multiple columns, where all the columns in the dataframe is numeric and … [Read more...] about How to Compute Z-Score of Multiple Columns

Filed Under: R Function, rstats101, scale() Tagged With: compute Z-score

How to drop unused level of factor variable in R

rstats101 · October 8, 2024 ·

In this post, we will learn how to drop unused level or levels of a factor variable in R. Sometimes, we may end up with a factor variable with un used levels after some data munging. Unused factor levels can sometime create issues while analyzing the data. In this tutorial, … [Read more...] about How to drop unused level of factor variable in R

Filed Under: droplevels(), forcats fct_drop() Tagged With: drop unused levels of factor

How to compute Z-score

rstats101 · September 30, 2024 ·

What is Z-score?

In this post, we will learn how to compute Z-score in R using two different approaches, first manually by using the z-score formula and then using scale() function available in base R. What is Z-score Z-score is a commonly used transformation technique to … [Read more...] about How to compute Z-score

Filed Under: rstats101, scale() Tagged With: compute Z-score

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

  • Page 1
  • Page 2
  • Page 3
  • 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