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() … [Read more...] about Compute rowwise mean and standard deviation
dplyr rowwise()
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 … [Read more...] about How to count number of missing values per row in a dataframe