Description Usage Arguments Examples
Takes a data.frame which consists of tabulated values
Takes a data.frame and expands it's value by a specific. If the column name is passed to 'count' the column will be removed from the output.
1 2 3 | detabulate(x, names = NULL, count = NULL)
expand_tab(x, count)
|
x |
A data.frame to duplicate rows |
names |
An optional character vector to specify the names |
count |
Either a vector of counts the same length as the original data.frame, a single value to apply to all columns, or the character name of the column that contains the count. |
1 2 3 4 5 | # nonsensical examples
expand_tab(airquality, "Month") %>% head()
expand_tab(airquality, airquality[5])
expand_tab(airquality, 10)
expand_tab(airquality, airquality$Month)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.