is_discrete | R Documentation |
is_discrete
checks if the specified covariates could be regarded as discrete
variables.
is_discrete(X, X_reg)
X |
A data frame of covariates |
X_reg |
The vector of covariates that will stratify the analyses. These
variables have to be categorical. Or a formula (can be tested by |
Note that this function should be used with caution. It used
nrow(X)/nrow(unique(X[,X_reg,drop=FALSE]))>10
as an ad hoc criterion.
It is not the same as is.discrete()
in plyr
TRUE
for all being discrete; FALSE
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.