Filter events by value
Examples
pe <- PhysioExperiment(assays = list(raw = matrix(rnorm(400), 100, 4)),
samplingRate = 100)
pe <- addEvents(pe, onset = c(1, 2, 3), type = "stimulus",
value = c("target", "distractor", "target"))
q <- filterValue(eventQuery(pe), "target")
resolveQuery(q)
#> DataFrame with 2 rows and 4 columns
#> onset duration type value
#> <numeric> <numeric> <character> <character>
#> 1 1 0 stimulus target
#> 2 3 0 stimulus target