valPrep: Prepare validation data for plotting.

View source: R/analysisFuns.R

valPrepR Documentation

Prepare validation data for plotting.

Description

Adds a column to the data.table/data.frame with a unique year and field descriptor by concatenating year and field, separated by a '.', corrects the experimental variable values back to the observed by reversing the centering. If the data was not centered there is no change. Removes missing values from the response variable and predicted response variable columns.

Usage

valPrep(dat, respvar, expvar)

Arguments

dat

Data.table with the data to check validity of parameters in. Typically the validation data that the model will be tested on.

respvar

Character, the response variable of interest.

expvar

Character, the experimental variable of interest.

Value

Updated 'parm_df' table.


paulhegedus/OFPE documentation built on Nov. 23, 2022, 5:09 a.m.