expand_with_variable_row.data.frame: Expands a data frame by adding combinations with a novel...

Description Usage Arguments Value Author(s)

Description

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

Usage

1

Arguments

df

a data frame

name

a string

values

a list of values

Value

the same dataframe with additional rows minus the original rows

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>


samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.