Description Usage Arguments Value Author(s)
Takes the data frame df passed as a parameter, and adds to columns the combinations of existing values and the novel variable values. For instance if the columns where a=1 and a=2, and you add name=b and values=list(3,4), the columns will be a=1,b=3 a=1,b=4 a=2,b=3 a2,b=4
1 | expand_with_variable_col.data.frame(df, name, values)
|
df |
a data frame |
name |
a string |
values |
a list of values |
the same dataframe with additional columns minus the original columns
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.