prep_dtag: Prepare DTag data

View source: R/dtag.R

prep_dtagR Documentation

Prepare DTag data

Description

Prepare DTag data

Usage

prep_dtag(
  file,
  start_time = NULL,
  out_freq,
  downsample = "thin_regular",
  keep_interval = NULL
)

Arguments

file

File name

keep_interval

Vector of two times: start and end of time interval over which to keep the data (e.g., to exclude periods where the tag was not on the animal). If not specified, the whole data set is kept.

start

Time for start of data in 'file' (as POSIX)

freq

Required frequency of output

Value

Data frame with columns:

  • tagIDIdentifier for tag (i.e., time series)

  • Ax, Ay, AzAcceleration in x, y, and z, obtained directly from the tag data

  • pitch, roll, headEulerian angles

  • depthDepth in metres

  • timeTime as POSIX

  • time_numTime as numeric

  • typeDive type (either "shallow" or "deep")


TheoMichelot/utilTM documentation built on April 14, 2025, 12:52 p.m.