build_datalist {prediction}R Documentation

Build list of data.frames

Description

Construct a list of data.frames based upon an input data.frame and a list of one or more at values

Usage

build_datalist(data, at = NULL, ...)

Arguments

data

A data.frame containing the original data.

at

A list of one or more named vectors of values, which will be used to specify values of variables in data. See examples.

...

Ignored.

Value

A list of data.frames.

Author(s)

Thomas J. Leeper

See Also

find_data, mean_or_mode, seq_range

Examples

# basic examples
require("datasets")
build_datalist(head(mtcars), at = list(cyl = c(4, 6)))

str(build_datalist(head(mtcars, at = list(cyl = c(4,6), wt = c(1,2,3)))))


[Package prediction version 0.2.0 Index]