rubitToDF: Flattens rubitrail lists into a single dataframe.

Description Usage Arguments Value See Also Examples

View source: R/toDF.R

Description

A helper function which flattens a list, or a list of lists, returned by rubitBasic and rubitMetrics and converts into a dataframe for ease of further analysis.

Usage

1
rubitToDF(LIST, basic = FALSE)

Arguments

LIST

a list (single result file) or list of lists (multiple results files) returned by rubitBasic or rubitMetrics.

basic

logical defining the type of data contained in LIST. Use FALSE for metrics data returned by rubitMetrics and TRUE for basic data returned by rubitBasic.

Value

A single dataframe for 'basic' input data. A list of three dataframes for 'metrics' input data, with elements named 'speed', 'turning' and 'activity'.

See Also

rubitBasic and rubitMetrics for information on processing raw trajectories and extracting metrics.

Examples

1
2
3
data(tenebrio_basic)

tenebrio_DF <- rubitToDF(tenebrio_basic, basic=TRUE)

JoGall/rubitrail documentation built on May 7, 2019, 10:53 a.m.