collapseRows | R Documentation |
for each group, sets the top row of the group to the group's value. All other rows in the group are set to "". See the example
collapseRows(df, variable)
df |
a data frame |
variable |
group variable to be collapsed |
a data frame with an updated variable
column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.