extractBV: Extracts measurements from a BV table

Description Usage Arguments Value Examples

View source: R/rdbes.R

Description

Reshapes BV table into a data.table with each row corresponding to one measured specimen, and the different BV types introduced as individual columns (e.g. age, length weight). @details Checks and halts for heterogenity in length units, weight untits, length measurements, or BVstratification

Usage

1
extractBV(BVtable, BVtypes, dataTypes)

Arguments

BVtable

data.table() with column names following the RDBES (v 1.17) R-Name specification

BVtypes

a character() vector identifying the BVtypes to introduce as columns (other record types are discarded)

dataTypes

The desired data types for the columns. Currently supported: integer, numeric, character and logical

Value

data.table()

Examples

1
extractBV(NORportsampling2018$BV, c("Age", "Length", "Weight"), c("integer", "numeric", "numeric"))

edvinf/prepRECA documentation built on Nov. 11, 2019, 6:30 a.m.