Description Usage Arguments Examples
Make a factor
1 | makeFactor(groups, levels = NULL, make.names = TRUE, verbose = FALSE)
|
groups |
Character strings |
levels |
Character vector, indicating strings |
make.names |
Should names be converted to adhere to the rule of variable names in R |
verbose |
Logical vector |
1 2 3 4 5 6 7 8 9 10 | makeFactor(c("A", "B", "C", "C", "A"), levels=LETTERS[3:1])
makeFactor(c("A 1", "B 2", "C 3", "C 3", "A 1"),
levels=c("A 1", "C 3", "B 2"),
make.names=TRUE)
makeFactor(c("A 1", "B 2", "C 3", "C 3", "A 1"),
levels=c("A 1", "C 3", "B 2"),
make.names=FALSE)
makeFactor(c("A 1", "B 2", "C 3", "C 3", "A 1"),
levels=c("A 1", "C 3", "B 2"),
make.names=FALSE, verbose=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.