subset.View | R Documentation |
Simple time and column subsetting of views.
## S3 method for class 'View'
subset(x, expr = NULL, data_points = NULL, columns = NULL, by = NULL, ...)
x |
|
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. |
a View
object.
r <- get_sample_recording()
v <- get_raw_view(r, "Central", "", "Sitar")
vv <- subset(v, Time < 10, data_point = "Nose")
plot(vv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.