Convert from disc and interspiracular width to length for skates, Conversion parameters were derived from West Coast Groundfish Bottom Trawl Survey data.

convertlength_skate(Pdata, returntype = c("all", "estimated"))

Arguments

Pdata

A data frame of biological samples originating from the Pacific Fishieries Information Network (PacFIN) data warehouse, which originated in 2014. Data are pulled using sql calls, see PullBDS.PacFIN().

returntype

A character value from the list supplied that specifies the data you want returned.

  • "all" all lengths with the new estimates replacing the input lengths

  • "estimated" only the estimat lengths with all other lengths as NA such that the returned vector is the same length and the number of rows of the input data frame.

Value

A vector of lengths. See returntype for detailed information on what can be returned.

Author

Kelli F. Johnson and Vladlena Gertseva