squash | R Documentation |
Squash one column in a data.frame using other columns as id.
squash(df, column, split = ",")
df |
data.frame |
column |
column name, not numeric position |
split |
split string |
data.frame
df <- data.frame(a = c(1:2, 1:2), b = letters[1:4])
squash(df, "b", ",")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.