Creates a new multiframe object containing only observations that meet specified conditions based on design variables. The lazy-evaluated observation closures remain valid in the subset.
Usage
# S3 method for class 'multiframe'
subset(x, fexpr, ...)See also
Other multiframe functions:
[.observation_set(),
[[.observation_set(),
multiframe.list(),
multiframe.matrix(),
obs_group(),
split.multiframe(),
summarize_by.multiframe(),
xdata.multiframe()
Examples
X <- matrix(rnorm(20 * 5), 20, 5)
Y <- data.frame(
condition = rep(c("A", "B"), each = 10),
block = rep(1:4, each = 5)
)
mf <- multiframe(X, Y)
mf_A <- subset(mf, condition == "A")