fn125_vonb_check: vonb_check - Fits VBL growth function to TLEN and AGE

View source: R/fn125_vonb_check.R

fn125_vonb_checkR Documentation

vonb_check - Fits VBL growth function to TLEN and AGE

Description

vonb_check - Fits VBL growth function to TLEN and AGE

Usage

fn125_vonb_check(FN125, makeplot = FALSE, fail_criteria = 0.2)

Arguments

makeplot

Default = FALSE. If TRUE, requires ggplot2 and will produce plots of the raw data colour coded to whether it met the pass/fail criteria. VBL fit also plotted as a line.

fail_criteria

Default value = 0.2 The threshold level that if exceeded in the log ratio of TLEN vs PRED_TLEN will flag the record as a potential error

Examples

## Not run: 
library(dplyr)
library(purrr)
FN125 <- FN125 %>%
  split(.$SPC) %>%
  map(fn125_vonb_check, makeplot = T) %>%
  bind_rows()

FN125 <- FN125 %>%
  split(.$SPC) %>%
  map(fn125_vonb_check, makeplot = T, fail_criteria = 0.1) %>%
  bind_rows()
  
## End(Not run)


HoldenJe/rprocval documentation built on Feb. 13, 2025, 7:45 a.m.