View source: R/cont_or_cat_function.R
cont_or_cat | R Documentation |
Continuous or categorical
cont_or_cat(data, var)
data |
Data frame |
var |
Variable |
Returns "continuous" or "categorical"
# Function can help determine which kind of output is
# most appropriate
cont_or_cat(data = cohort_a, var = 'height_1')
cont_or_cat(data = cohort_a, var = 'education')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.