tag_import: Import and combine multiple files

View source: R/tag_import.R

tag_importR Documentation

Import and combine multiple files

Description

Import and combine multiple raw data acceleration files

Usage

tag_import(tag_id , rounding , eobs = TRUE , data_path = NULL)

Arguments

tag_id

Tag id of the tag that is read in. Multiple files of the same tag should be indicated with either a number or a letter (capital or small). Example: tag_id_acc_1 or tag_id_acc-a. Works also if only one file exists. Example: tag_id_acc

rounding

Rounds the timestamp down to the desired position set in seconds. No rounding when set to 1. The default is 10 which will round the timestamp down to full 10 seconds.

eobs

Indicating wether the raw data come from an eobs tag and got their standart format or not. Default is TRUE.

data_path

Data path of the data in case they are not stored in the RStudio project folder. If the data is located in the project folder no path is needed.

Details

This function will only accept txt files. All files of the same individual schould be named in order. Multiple files of the same individual should be indicated with either a number or a letter (capital or small). Excepted formats are "<tag_id>_acc_1.csv" or "<tag_id>_acc_a.csv". In case there is only one behaviour file it should be named "<tag_id>_acc.csv". All data will be read in in order of the file naming. Timestamp order will have no influence.

Value

The output will be a data.table.data frame which should work like a base R data.frame in most cases.

Author(s)

Wanja Rast

See Also

bev_import

Examples

##---- NOT RUN ----
data <- tag_import(tag_id = "tag6566" , rounding = 10 , eobs = T)

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