| stack | R Documentation |
Convert selected columns into long format with an indicator column.
stack(data, select = NULL, drop = FALSE)
data |
A data frame or data table. |
select |
Optional character vector of columns to stack. |
drop |
Whether to drop rows with missing values. |
A basetable with a stacked value column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.