readTDRData: Reads in raw TDR data and sets up a standard format.

View source: R/Process_GPS.R

readTDRDataR Documentation

Reads in raw TDR data and sets up a standard format.

Description

Reads in raw TDR data and sets up a standard format.

Usage

readTDRData(
  inputFolder,
  deployments,
  tagTZ = "UTC",
  tagType,
  dateFormat = "%d-%m-%Y"
)

Arguments

inputFolder

Folder containing all the raw GPS files to be processed.

deployments

Name of object with deployment data.

tagTZ

Timezone of TDR data.

tagType

Type of TDR biologger used, options are "Technosmart", "LAT150.

dateFormat

POSIXct string indicating how dates are formatted in the TDR files.

Details

Technosmart can export TDR data with the following date formats: The lowest sampling frequency for TDR data on a Technosmart unit is 1 Hz, however these data are exported along with the acceleration data, which is usually at a higher frequency. This function will resample the TDR data to 1Hz if they appear at a higher frequency in the data (i.e. exported using the 'fill missing fields setting')

The function will print lists of: TDR files that contain no data, TDR files that have no matching deployments in the deployment data, and deployments that have no matching TDR files. This is intended to help you identify errors in data entry or file naming. For technosmart units, I recommend you re-export data any time you change the file name because X-Manager includes the file name as a column in the data.

Value

A new dataframe containing all TDR data.


allisonglider/seabiRds documentation built on Feb. 14, 2025, 7:37 a.m.