ip_create_seed: Create initial dataframe of all unique target series.

Description Usage Arguments Value Examples

Description

Create initial dataframe of all unique target series. Essentially expand.grid() for the tidyverse.

Usage

1
2
ip_create_seed(tars, names.exclude = c("value"), value.set = 1,
  value.name = "value", override.warning = FALSE)

Arguments

tars

A list of data frames containing series to expand.

names.exclude

Vector of names of series to exclude from the data frame creation.

value.set

Single number or vector of numbers to initialize the seed value.name.

value.name

Name of series in the data frame containing value.set.

Value

A data frame containing one row for each combination of the data frame series. The series in the first tar data frame vary fastest. The columns names match names supplied in each of the tar data frames.

Examples

1
2
3
tar1 <- data.frame(x = letters[1:2], value = runif(2))
tar2 <- data.frame(y = letters[3:5], value = runif(3))
ip_create_seed(list(tar1, tar2))

ryantimpe/ipfitr documentation built on May 14, 2019, 8:55 a.m.