tag_import | R Documentation |
Import and combine multiple raw data acceleration files
tag_import(tag_id , rounding , eobs = TRUE , data_path = NULL)
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. |
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.
The output will be a data.table.data frame which should work like a base R data.frame in most cases.
Wanja Rast
bev_import
##---- NOT RUN ---- data <- tag_import(tag_id = "tag6566" , rounding = 10 , eobs = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.