Description Usage Arguments Details Value Examples
View source: R/3b_outcome_analysis_functions.R
Function to return mean age from a data frame
1 | get_mean_sd_age(this_data, age_nrcode)
|
this_data |
the data containing column with age |
age_nrcode |
non response code |
Age data is complete with the nr code given and get the mean and sd
mean and sd, if success -1, if failure
1 2 3 | this_data <- as.data.frame(cbind(num = c(1, 2, 3, 4),
age = c(14, 25, 26, 30)))
get_mean_sd_age(this_data, NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.