read_otn_deployments: Read data from a OTN detection file

View source: R/load-read_otn_deployments.R

read_otn_deploymentsR Documentation

Read data from a OTN detection file

Description

Read data from a standard OTN detection (csv) file and return a data.frame of class glatos_detections.

Usage

read_otn_deployments(deployment_file)

Arguments

deployment_file

A character string with path and name of detection file in OTN deploymeny format (*.csv). If only file name is given, then the file must be located in the working directory.

Details

Data are loaded using fread package and timestamps are coerced to POSIXct using the fastPOSIXct. All times must be in UTC timezone per GLATOS standard.

Column names are changed to match GLATOS standard columns when possible. Otherwise, OTN columns and column names are retained.

Value

A data.frame of class glatos_receivers that includes OTN columns that do not map directly to GLATOS columns.

Author(s)

A. Nunes, anunes@dal.ca

Examples

#get path to example deployments file
deployment_file <- system.file("extdata", "blue_shark_detections.csv",
                         package = "glatos")
det <- read_otn_deploymentss(deployment_file)


jsta/glatos documentation built on July 11, 2022, 7:01 a.m.