• 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 count number of missing values per row in a dataframe

rstats101 · October 13, 2022 ·

Count the number of missing values per row

In this tutorial, we will learn how to count the number missing values, NAs, in each row of a dataframe in R. We will see examples of counting NAs per row using four different approaches. For the first two solutions, we will use tidyverse function rowwise() from dplyr. The next … [Read more...] about How to count number of missing values per row in a dataframe

Filed Under: dplyr rowwise() Tagged With: count NAs per row

How to Extract p-values from multiple simple linear regression models

rstats101 · October 12, 2022 ·

Sometimes you might fit many simple linear regression models and would like to extract p-values from each model. In this tutorial, we will learn two approaches to extract p-values from multiple simple linear regression models built in R. We will first use for loop to build and … [Read more...] about How to Extract p-values from multiple simple linear regression models

Filed Under: lapply() function, linear regression Tagged With: extract p-values from many models

How to extract residuals from a linear regression model

rstats101 · October 2, 2022 ·

In this tutorial, we will learn how to extract residual values from a linear regression model in R. Residuals are values that is remaining after adjusting or subtracting effects of variable in the model. We will see two approaches to pull residuals from linear regression model … [Read more...] about How to extract residuals from a linear regression model

Filed Under: linear regression, rstats Tagged With: augment() broom, extract residual from linear regression fit

How to get p-value from linear regression model

rstats101 · September 2, 2022 ·

Get p-value from summary of linear mode

In this tutorial, we will learn how to extract p-value from a linear regression fit object in R. We will use two approaches to pull out p-value and other statistics of interest from a linear regression model. First we will extract the p-value directly from summary of the linear … [Read more...] about How to get p-value from linear regression model

Filed Under: linear regression, rstats Tagged With: get p-value from linear regression, tidy() in broom

list.files() in R: list files in a directory

rstats101 · August 27, 2022 ·

In tutorial, we will learn how to list all the files in a directory in R. With list.files() function in R we can get all the files in a folder or directory as a vector. Here we will see multiple examples of using list.files() to get the files in a directoy, files matching a … [Read more...] about list.files() in R: list files in a directory

Filed Under: list.files(), R Function Tagged With: list files in a dir

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 11
  • Page 12
  • Page 13
  • Page 14
  • Page 15
  • 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