• 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

dplyr

slice_min: Get Rows with minimum values of a column

rstats101 · November 3, 2023 ·

dplyr's slice_min(): Rows with lowest values for a column

In this tutorial, we will learn how to get rows with lowest values of a column from a data frame in R. We will use dplyr's slice_min() function to select rows with lowest values for a column in a data frame. We will also use slice_min() function in dplyr to find the bottom n … [Read more...] about slice_min: Get Rows with minimum values of a column

Filed Under: dplyr slice_min(), rstats101 Tagged With: bottom n rows with min values

How to do inner join with dplyr in R

rstats101 · October 7, 2023 ·

dplyr's inner_join()

In this post, we will learn how to do an inner join in R with dplyr's inner_join(). An inner join between two dataframes x and y, gives is the only rows from x for which we have a matching key in y. First, load tidyverse suit of packages and check the version of dplyr … [Read more...] about How to do inner join with dplyr in R

Filed Under: dplyr inner_join(), rstats101 Tagged With: inner join with dplyr

Join dataframes by different column names with dplyr

rstats101 · October 7, 2023 ·

Join dataframes by different column names with dplyr

In this tutorial, we will learn how to join dataframes by columns with different names in the two dataframes. dplyr offers a great set of tools to join or merge dataframes. We will use two approaches to merge two dataframe by different names. We will start with … [Read more...] about Join dataframes by different column names with dplyr

Filed Under: dplyr left_join(), rstats101 Tagged With: join dataframes by different column names dplyr

slice_max: get rows with highest values of a column

rstats101 · October 2, 2023 ·

dplyr's slice_max(): Rows with highest values for a column

In this tutorial, we will learn how to get rows with maximum values of a column or variable from a dataframe. For example, from a dataframe with multiple rows and columns we will find a row (or multiple rows) with maximum values for a column. We will use dplyr's slice_max() … [Read more...] about slice_max: get rows with highest values of a column

Filed Under: dplyr, dplyr slice_max(), rstats101 Tagged With: top n rows with max values

3 ways to rank numbers with tidyverse

rstats101 · September 16, 2023 ·

In this tutorial, we will learn 3 ways to rank integers in tidyverse. Tidyverse's dplyr has three integer ranking functions, row_number(), min_rank(), and dense_Rank(), inspired by SQL. And these integer ranking functions differ in how they handle ties. Let us jump into … [Read more...] about 3 ways to rank numbers with tidyverse

Filed Under: dplyr, dplyr dense_rank(), dplyr min_rank(), dplyr row_number(), rstats101 Tagged With: ranking integers

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