Description Usage Arguments Value Examples
Downloading data from CEFAS tags yields a non-tabular CSV. read_cefas
reads a CEFAS file and extracts the depth records in a tidy data.frame.
1 | read_cefas(cefas_file, deployed, recovered)
|
cefas_file |
character. Path to CEFAS file. |
deployed |
POSIXct. Datetime of deployment. |
recovered |
POSIXct. Datetime of recovery |
data.frame with columns
Row
(Row number in original CEFAS file)
UTC
(Datetime of record in UTC timezone)
Pressure
EventID
(FastLog identifier)
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Load metadata
metadata_path <- system.file('extdata',
'MOC2015PFSHmetadata.csv',
package = 'pfsh.dive')
metadata <- readr::read_csv(metadata_path)
# Read CEFAS output
tdr_path <- system.file('extdata',
paste0(metadata$TDR_filename[1], '.CSV'),
package = 'pfsh.dive')
tdr <- read_cefas(tdr_path,
metadata$Deployed[1],
metadata$Recovered[1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.