DefineLengthConversionParameters: Define Length Conversion Parameters

View source: R/StoxBaselineFunctions.R

DefineLengthConversionParametersR Documentation

Define Length Conversion Parameters

Description

Define length conversion parameters for approximating one type of length measurement from measurments of another type, based on a linear regression fit between measurement types. E.g. calculating 'total length' from measured 'fork length'.

Usage

DefineLengthConversionParameters(
  processData,
  DefinitionMethod = c("ResourceFile"),
  FileName = character(),
  UseProcessData = F
)

Arguments

processData

LengthConversionTable as returned from this function

DefinitionMethod

'ResourceFile'. See details.

FileName

path to resource file

UseProcessData

If TRUE, bypasses execution of function and returns existing 'processData'

Details

For DefinitionMethod 'ResourceFile': Definitions are read from a tab separated, UTF-8 encoded file with headers. Columns defined as:

Column 1: 'Description'

Free-text description of the product

Column 2: 'Species'

Identifier for the species that the conversion applies to

Column 3: 'MeasurmentType'

Identifier for the type of length measurement of the measured length

Column 4: 'Alpha'

scalar value representing the intercept (in cm) of a linear regression fit between length measurements.

Column 5: 'Beta'

scalar value representing the slope of a linear regression fit between length measurements.

See also LengthConversionTable

Value

LengthConversionTable

See Also

ConvertLengthBiotic for applying length conversion to data


StoXProject/RstoxFDA documentation built on Jan. 13, 2024, 12:32 a.m.