Subset a View
subset.View.Rd
Simple time and column subsetting of views.
Usage
# S3 method for View
subset(x, expr = NULL, data_points = NULL, columns = NULL, by = NULL, ...)
Arguments
- x
View
object- expr
an R expression to subset time or other variables.
- data_points
body part in the data e.g. 'Nose'.
- columns
column name in the data e.g. 'Nose_x'.
- by
increment of the sequence of rows to return.
- ...
unused.
Examples
r <- get_sample_recording()
v <- get_raw_view(r, "Central", "", "Sitar")
vv <- subset(v, Time < 10, data_point = "Nose")
plot(vv)