formatRiparianVegetation: Format Riparian Vegetation data for calculations

Description Usage Arguments Value

View source: R/calculateRiparianVegetation.R

Description

In addition to transposing the data to a wide format, this function creates two sets of parameters: 'p_' and 'r_'. The former are 'presence' parameters and are TRUE whenever for any parameter with a nonzero vegetation cover class. The latter parameters are the cover classes converted to the arithmetic means of end points of the cover classes to numerically characterize each class.

Usage

1
formatRiparianVegetation(uid, transect, transdir, parameter, result)

Arguments

uid

a vector of site visit indicators

transect

a vector of transect indicators

transdir

a vector of bank indicators

parameter

the measured parameter code. One of: "underveg", "canveg", "canbtre", "canstre", "undwdy", "undnwdy", "gcwdy", "gcnwdy", "bare".

result

the measured result for each parameter. A vegetation class for "underveg" and "canveg" and 0-4 for the others.

Value

a data frame in wide format with the parameters necessary for metric calculation


jasonelaw/nrsa documentation built on Nov. 8, 2019, 11:34 a.m.