Description Usage Arguments Value Examples
View source: R/detectCharacterType.R
Function to detect whether a character is continuous or discrete
1 | detectCharacterType(dat, repeatsAsDiscrete = TRUE, cutoff = 0.1)
|
dat |
A vector of data |
repeatsAsDiscrete |
If TRUE, consider numeric variables that repeat values exactly as discrete; see cutoff |
cutoff |
Cutoff value for deciding if numeric data might actually be discrete: if nlev is the number of levels and n the length of dat, then nlev / n should exceed cutoff, or the data will be classified as discrete |
Either "discrete" or "continuous"
1 2 | data(anolis)
detectCharacterType(anolis$dat[,1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.