• 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

How to Separate a Column into Multiple Rows in R: Hint tidyr’s spearate_row()

rstats101 · June 27, 2022 ·

In this tutorial, we will learn how to separate a column with multiple elements separated by a delimiter into different rows. We will use tidy's separate_rows() function first to separate a column with comma separated elements. And then show how to use separate_rows() on multiple … [Read more...] about How to Separate a Column into Multiple Rows in R: Hint tidyr’s spearate_row()

Filed Under: tidyr, tidyr separate_rows() Tagged With: tidyr separate_rows()

How to select columns that starts with a prefix/string in R

rstats101 · June 23, 2022 ·

In this tutorial, we will learn how to select columns that starts with a prefix or string using dplyr's strats_with() function and base R startsWith() function. The tidyverse R package dplyr has a number of helper functions to select columns of interest under different … [Read more...] about How to select columns that starts with a prefix/string in R

Filed Under: base R startsWith(), dplyr starts_with() Tagged With: base R startsWith(): select columns that starts with string, dplyr starts_with(): select columns that starts with string

How to Select Rows of a dataframe by position

rstats101 · June 18, 2022 ·

In this post, we will see how to subset a dataframe or select rows based on their position. We will first use dplyr's slice() function to slice a dataframe by location and then show how to select rows by position using base R Let us load tidyverse suite of R packages … [Read more...] about How to Select Rows of a dataframe by position

Filed Under: dplyr, dplyr slice() Tagged With: dplyr slice() select rows by location, select rows by position

How to replace NA in a column with specific value

rstats101 · June 17, 2022 ·

In this tutorial we will learn how to replace missing values/NA in a column with a specific value. We will replace NA in a column using two approaches. At first we will use dplyr function mutate and ifelse to identify the element(s) with NA and replace with a specific value. Next … [Read more...] about How to replace NA in a column with specific value

Filed Under: dplyr, replace NA, replace NAs tidyverse Tagged With: replace missing value in a column, replace NA in a column with specific value

Linear Regression in R with lm() function – A Practical Tutorial

rstats101 · June 14, 2022 ·

Scatterplot with linear fit line

In this tutorial, we will learn how to perform a simple linear regression in R using lm() function. Simple Linear regression is one of the popular and common statistical methods that is used to understand the relationship between two numerical or quantitative variables, like … [Read more...] about Linear Regression in R with lm() function – A Practical Tutorial

Filed Under: lm() in R Tagged With: linear regression in R

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 15
  • Page 16
  • Page 17
  • Page 18
  • Page 19
  • Interim pages omitted …
  • Page 24
  • 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