apply_conversion_factors: Applies conversion factors to Raw Survey data pull

View source: R/apply_conversion_factors.r

apply_conversion_factorsR Documentation

Applies conversion factors to Raw Survey data pull

Description

Connects to svdbs and pulls conversion factors from SURVAN_CONVERSION_FACTORS Explain what conversions do ...

Usage

apply_conversion_factors(channel, survdat.raw, use.SAD = F)

Arguments

channel

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

survdat.raw

Data.table. Result of get_survdat_data

use.SAD

Boolean. Use Survey Analysis Database (SAD) for assessed species. Default = F

Value

A list containing a Data frame (data.table) (n x 21) and a list of SQL queries used to pull the data Each row of the data.table represents the number at length of a species on a specific tow along with physical attributes of the tow. See get_survdat_data for more details

Internal

This is an internal function. To pull the values of the conversion factors use get_conversion_factors


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