get_availability | R Documentation |
Get N(%) availability - the number of times the variable is not NA
get_availability(data, strata, variable, name, output, round = 2)
data |
tibble containing data. Can't be a grouped tibble |
strata |
variable to stratify output by. Needs to be a factor to force to ordering to work. |
variable |
Variable to check availability for. Can be numeric, string, factor. |
name |
string name to put into the row |
output |
The dataframe to append the requested summary to |
round |
The number of decimal places to round results to. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.