tabf | R Documentation |
Like a table but each element consists of the rows of the data frame for a particular combination of levels of the formula
tabf(dd, fmla, all = TRUE, ...)
dd |
data frame |
fmla |
formula whose RHS creates a table and LHS adds variables to the resulting data frames |
all |
adds all variables in the data frame |
tabf(mtcars, ~ cyl + carb)[1,1]
tabf(mtcars, ~ cyl + carb) %>% dimnames
tabf(mtcars, ~ cyl + carb + gear ) %>% Apply(dim) %>% Apply(paste, collapse = ' ')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.