Description Usage Arguments Value Examples
View source: R/summarize_dives.R
summarize_dives
provides the depth and duration of all the dives in
calibrated TDR data. Note: Begin and End times may be to sub-second
accuracy and default R print options conceal decimal values.
1 | summarize_dives(calib_tdr)
|
calib_tdr |
data.frame. Use |
data.frame with columns
DeployID
DiveID
Begin
(in UTC)
End
(in UTC)
Depth
(in meters)
Duration
(in seconds)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # 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])
# Calibrate TDR data
calib_tdr <- calibrate_tdr(tdr, metadata$DeployID[1])
# Summarize dives in a table
summarize_dives(calib_tdr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.