datadr (version 0.8.4)

getSplitVar: Extract "Split" Variable(s)

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

getSplitVar(x, name)

getSplitVars(x)

Arguments

x
a key-value pair or a value
name
the name of the split variable to get

Examples

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

Run the code above in your browser using DataLab