get_vessel: Extract VESSEL information from SVDBS

View source: R/get_vessel.R

get_vesselR Documentation

Extract VESSEL information from SVDBS

Description

Extract a list of sex codes and descriptions from the SVDBS SV_VESSEL table

Usage

get_vessel(channel)

Arguments

channel

an Object inherited from DBIConnection-class. This object is used to connect to communicate with the database engine. (see connect_to_database)

Value

A list is returned:

data

tibble containing the result of the executed $sql statement

sql

containing the sql call

colNames

a vector of the table's column names

Reference

Use the data dictionary for field name explanations

See Also

connect_to_database

Other helper: get_conversion_factors(), get_cruise_purpose(), get_maturity(), get_sex_fscs(), get_sex(), get_species(), get_strata()

Examples

## Not run: 
# extracts complete vessel table
channel <- dbutils::connect_to_database(server="serverName",uid="userName")
get_vessel(channel)

## End(Not run)


andybeet/survdat documentation built on Nov. 9, 2023, 10:11 a.m.