read_prh_db: Read a PRH from the CATS database

Description Usage Arguments Value Examples

View source: R/read_prh.R

Description

Read a PRH from the CATS database

Usage

1
read_prh_db(depid, cats_db)

Arguments

depid

deployment identifier e.g. bw180827-46

cats_db

connection to CATS database (see dbConnect())

Value

a PRH object

Examples

1
2
3
4
db_path <- "/Volumes/COPYCATSdat/CATS/cats.sqlite"
cats_db <- DBI::dbConnect(RSQLite::SQLite(), db_path)
mn190228_42_db <- read_prh_db("mn190228-42", cats_db)
DBI::dbDisconnect(cats_db)

FlukeAndFeather/breath documentation built on April 25, 2020, 3:15 a.m.