splitvars: Extract "Split" Variable(s)

Description Usage Arguments Examples

Description

For a given key-value pair or value, get a split variable value by name, if present (split variables are variables that define how the data was divided).

Usage

1
2
3

Arguments

x

a key-value pair or a value

name

the name of the split variable to get

Examples

1
2
3
4
5
d <- divide(iris, by = "Species",
  bsvFn = function(x)
    list(msl = bsv(mean(x$Sepal.Length))))
getSplitVars(d[[1]]$value)
getSplitVar(d[[1]]$value, "Species")

datadr documentation built on May 1, 2019, 8:06 p.m.