Description Usage Arguments Value Author(s)
Takes the data frame df passed as a parameter, and adds to rows the combinations of existing values and the novel variable values. For instance if the rows where a=1 and a=2, and you add name=b and values=list(3,4), the rows will be a=1,b=3 a=1,b=4 a=2,b=3 a2,b=4
1 | expand_with_variable_row.data.frame(df, name, values)
|
df |
a data frame |
name |
a string |
values |
a list of values |
the same dataframe with additional rows minus the original rows
Samuel Thiriot <samuel.thiriot@res-ear.ch>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.