Learn R Programming

movementsync (version 0.1.5)

subset.View: Subset a View

Description

Simple time and column subsetting of views.

Usage

# S3 method for View
subset(x, expr = NULL, data_points = NULL, columns = NULL, by = NULL, ...)

Value

a View object.

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

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

Run the code above in your browser using DataLab