View source: R/manual_stratify.R
warn_if_continuous | R Documentation |
Throws an error if a column is continuous
warn_if_continuous(column, name, force, n)
column |
vector or factor column from a |
name |
name of the input column |
force, |
a boolean. If true, warn but do not stop |
n, |
the number of rows in the data set |
Not meant to be called externally. Only categorical or binary covariates should be used to manually stratify a data set. However, it's hard to tell for sure if something is continuous or just discrete with real-numbered values. Returns without throwing an error if the column is a factor, but throws an error or warning if the column has many distinct values.
Does not return anything
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.