Compute rowwise mean and standard deviation

In this post, we will learn how to compute row-wise summary statistics like mean and standard deviation using dplyr’s row_wise() function. First, let us load tidyverse and verify the version of dplyr. Let us create a toy dataframe with five columns. We use sample() function to create some random vector. And then use matrix() function… Continue reading Compute rowwise mean and standard deviation

How to count number of missing values per row in a dataframe

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 two approaches to count NAs… Continue reading How to count number of missing values per row in a dataframe

Exit mobile version