Skip to contents

Like label_stocks(), but uses an active FRAM database to label stocks, rather than the look-up table present in the framrosetta package. Primarily used in fetch_table(), useful if working with databases with unusual stock or fishery tables.

Usage

label_stocks_db(.data, fram_db)

Arguments

.data

Dataframe containing `stock_id` column (or analogous column with different name specied by `stocks_col` argument)

fram_db

FRAM database connection

Value

.data with additional column, $stock_label