move_trans | R Documentation |
Transforms acceleration data downloaded from movebank into a usable format.
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)
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) |
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.
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.
Wanja Rast
##---- 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) { }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.