move_trans: Movebank transformation

View source: R/move_trans.R

move_transR Documentation

Movebank transformation

Description

Transforms acceleration data downloaded from movebank into a usable format.

Usage

move_trans(file =  NULL , object = NULL , time = "timestamp" , acc = "eobs:accelerations-raw" ,
           id = "individual-local-identifier" , sample_fequency = "eobs:acceleration-sampling-frequency-per-axis"
           , naxes = 3, no_cores = 1)

Arguments

data

object name of the Movebank ACC data, choose either this or file, in case data are not already read into R

path

file path to the downloaded csv file, choose either this or object, in case the object was read into R already

timestamp

name of the column holding the timestamps - default is "timestamp"

acc

name of the column holding the name for the raw acc data - default is "eobs:accelerations-raw"

id

name of the column holding the individual id - default is "individual-local-identifier"

sample_fequency

name of the column holding the sample frequency - default is eobs:acceleration-sampling-frequency-per-axis"

naxes

number of axes recorded - default is 3 axes

no_cores

set the number of cores for parallel processing - default is 1(no parallel processing)

Details

In cases where the data was recorded with multiple settings that are stored all in one file, the function will output a warning with information on the burst sizes of the other setting. The data from other settings will be ignored in the transformation. They need to be transformed seperatly.

Value

A data.table with the acceleration data, timestamps, ids and sample frequencies in sperate columns. Rows represent single measuremnts. An additional columns that informs on the length of each burst is added.

Author(s)

Wanja Rast

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x)
{
  }

wanjarast/accelerateR documentation built on June 21, 2022, 3:29 p.m.