Select frame features using feature metadata
Examples
sp <- volume_space(dim = c(2, 2, 2), affine = diag(4))
frame <- fmri_frame(
assays = list(bold = matrix(rnorm(4 * n_features(sp)), nrow = 4)),
observations = data.frame(.obs_id = sprintf("vol-%d", 1:4)),
space = sp
)
select_features(frame, i == 1)
#> <fmri_view> 4 observations x 4 features
#> base: 4 x 8
#> assays: bold