subset.View {movementsync}R Documentation

Subset a View

Description

Simple time and column subsetting of views.

Usage

## S3 method for class '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.

Value

a View object.

Examples

r <- get_sample_recording()
v <- get_raw_view(r, "Central", "", "Sitar")
vv <- subset(v, Time < 10, data_point = "Nose")
plot(vv)

[Package movementsync version 0.1.4 Index]