Skip to content

mczapanskiy-usgs/pfsh.dive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pfsh.dive

Overview

pfsh.dive contains the data and code used in Adams et al. 2018.

Installation

# pfsh.dive is on GitHub, not CRAN, so use the following code for installation
install.packages('devtools')
devtools::install_github('mczapanskiy-usgs/pfsh.dive')

Usage

# 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)

# Plot a dive
plot_dive(calib_tdr, 4)

About

Data and code for Adams et al. 2018.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages