get_sex: Extract SEX information from SVDBS

View source: R/get_sex.R

get_sexR Documentation

Extract SEX information from SVDBS

Description

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

Usage

get_sex(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_species(), get_strata(), get_vessel()

Examples

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

## End(Not run)


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