Description Usage Arguments Value Details See Also
Updated version of sum_missings()
1 | tidy_sum_missings(data, selector)
|
data |
a |
selector |
a |
a vector of the number of missing values for each row from the specified columns of the data frame.
This function, and those specified below in 'See Also', work best when used
inside a call to dplyr
's mutate()
for creating new variables.
The point of the function is to make it easy to use select helpers from
the tidyselect (and used in dplyr extensively) to select variables for aggregation,
such as an average score for a number of questionnaire items, the sum of correct responses,
or finding the number of missing values in a row.
tidy_avg_rows
for row averaging across rows, tidy_sum_rows
for row summing
, and tidy_sd_rows
for calculating standard deviations across rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.