readAct | R Documentation |
Read the activity data from a BAS tag
readAct(file, skip = 0)
readAct2(file, d.lig = NULL, skip = 0)
file |
the activity file to import. |
skip |
number of initial lines to skip |
d.lig |
dataframe of light data created with |
Functions for importing activity data from BAS tags. The
readAct
function imports activity data from an early
generation BAS tag while readAct2
imports activity data
from later generation BAS tags that run length encode activity.
If readAct2
is passed a dataframe constructed with
readLig
, it interpolates activity to the times at which
light is recorded and returns a merged dataframe with both light
and activity data.
readAct
returns a dataframe with columns
Valid |
an indicator of whether the record is valid |
Date |
the date and time of the observation |
Julian |
date and time as Julian date |
Activity |
the recorded activity level |
Temp |
the recorded temperature |
If readAct2
is passed a d.lig
dataframe, it returns that
dataframe with an appended column
Activity |
the number of seconds the tag has been wet. |
otherwise it returns a dataframe with columns
Valid |
an indicator of whether the record is valid |
Date |
the date and time of the observation |
Julian |
date and time as Julian date |
Activity |
the number of seconds of activity |
Wet |
whether the tag was wet or dry |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.