Description Usage Arguments Value Examples
Multi-levels in a data.frame Determine how many levels are in a data.frame
1 |
df |
a object of class data.frame |
... |
optional parameters supplied |
an object of class 'list' indicating the column name and the amount of levels
1 2 3 4 5 6 7 | sample_df = data.frame("x" = rnorm(1:10),
"y" = rnorm(1:10),
"letters" = letters[1:10],
"gender" = c("M", "F"),
"pet" = c("spike", "spot", "fluffy", "mr. jingles", "rex") )
multi_levels(df=sample_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.