Description Usage Arguments Details Value
we treat character as categorial; double as continuous; for integer/numeric/double, we can specify a minimum categories to be continuous variable
1 | is_continuous(vec, minCat = 10)
|
vec |
a vector |
minCat |
an integer specifying minimum categories required to be a continuous variable for integers |
a vector of class character is for sure categorical and would be good to handled as a factor in R. The class numeric can be either integer (is.integer) or double (is.double). If is.double, then we should treat it as continuous when it has enough categories (binary can be stored as double mode!). For is.integer, when there is less than 5 categories, i.e., it is better treated as categorical.
TRUE for continuous and FALSE for anything else
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.