convert_lengths: Convert fish length

View source: R/convert_lengths.R

convert_lengthsR Documentation

Convert fish length

Description

Converts fish length data using the length conversion table. Returns an arrow dataset. This function is only needed to convert Suisun survey data.

Usage

convert_lengths(data)

Arguments

data

A DBI table that can be treated like a data.frame, with fish data. See open_fish()

Value

data_conv A DBI table with converted lengths

Examples

## Not run: 
library(dplyr)
con <- open_database()
fish <- open_fish(con) %>%
  filter(Taxa %in% c("Dorosoma petenense", "Morone saxatilis", "Spirinchus thaleichthys"))

fish_conv <- convert_lengths(fish) %>%
  collect()
close_database(con)

## End(Not run)


Delta-Stewardship-Council/deltafish documentation built on July 31, 2024, 3:32 p.m.