get_conversion_factors: Extract CONVERSION FACTORS from SVDBS

View source: R/get_conversion_factors.R

get_conversion_factorsR Documentation

Extract CONVERSION FACTORS from SVDBS

Description

Extract a list of conversion factors from the SVDBS SURVAN_CONVERSION_FACTORS table

Usage

get_conversion_factors(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

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_cruise_purpose(), get_maturity(), get_sex_fscs(), get_sex(), get_species(), get_strata(), get_vessel()

Examples

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

## End(Not run)


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