readAct: Read Activity Data

View source: R/TwGeos.R

readActR Documentation

Read Activity Data

Description

Read the activity data from a BAS tag

Usage

readAct(file, skip = 0)

readAct2(file, d.lig = NULL, skip = 0)

Arguments

file

the activity file to import.

skip

number of initial lines to skip

d.lig

dataframe of light data created with readLig

Details

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.

Value

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


slisovski/TwGeos documentation built on Jan. 27, 2024, 10:43 a.m.