Description Usage Arguments Value Examples
Calculates row missing with means coded to NA based on number of missing variables.
1 | lhd_rowMean(data, newvar, vars, num_miss)
|
data |
the tibble or data.frame. |
newvar |
is the name of the new variable. |
vars |
is the vector of variable names that will be used to calculate the row mean. |
num_miss |
is the number of missing that will be used to determine if the row mean should be missing. It is expressed as |
The tibble or data.frame with the row mean and the number of missing across the variable list.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.