Create a new hyperdesign object containing only the specified blocks.
Usage
# S3 method for class 'hyperdesign'
subset(x, fexpr, ...)See also
Other hyperdesign functions:
as_multidesign(),
design.hyperdesign(),
df_to_hyperdesign(),
hyperdesign.list(),
init_transform.hyperdesign(),
xdata.hyperdesign()
Examples
# Create example hyperdesign
d1 <- multidesign(matrix(rnorm(10*20), 10, 20),
data.frame(subject=1, condition=rep(c("A","B"), 5)))
d2 <- multidesign(matrix(rnorm(10*20), 10, 20),
data.frame(subject=2, condition=rep(c("A","B"), 5)))
d3 <- multidesign(matrix(rnorm(10*20), 10, 20),
data.frame(subject=3, condition=rep(c("A","B"), 5)))
hd <- hyperdesign(list(d1, d2, d3))
# Keep only condition A
subset_hd <- subset(hd, condition == "A")