View source: R/load-read_otn_detections.r
| read_otn_detections | R Documentation |
Read data from a standard OTN detection (csv) file and return
a data.frame of class glatos_detections.
read_otn_detections(det_file)
det_file |
A character string with path and name of detection file in OTN detection extract format (*.csv). If only file name is given, then the file must be located in the working directory. |
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.
A data.frame of class glatos_detections that includes OTN
columns that do not map directly to GLATOS columns.
A. Nunes, anunes@dal.ca
#get path to example detection file
det_file <- system.file("extdata", "blue_shark_detections.csv",
package = "glatos")
det <- read_otn_detections(det_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.