c3d_analog {c3dr}R Documentation

Get analog data from a c3d object

Description

Get the analog data of a c3d object in a data frame.

Usage

c3d_analog(x)

Arguments

x

A c3d object, as imported by c3d_read().

Details

The analog data of imported c3d objects in c3dr is saved as a list of lists. This is good for internal handling, but for analysis a table format (a data frame) is often more convenient.c3d_analog() returns the analog data from an imported c3d object as a data frame.

Value

A data.frame with with n rows and m columns, where n is the number of frames recorded times the number of analog subframes per frame, and m as the number of recorded analog channels.

Examples

# Import example data
d <- c3d_read(c3d_example())

# get analog data
a <- c3d_analog(d)
head(a)

[Package c3dr version 0.1.5 Index]