error_check_Pxxx: QA/QC: Check for errors in pairing equations

View source: R/error_check_Pxxx.R

error_check_PxxxR Documentation

QA/QC: Check for errors in pairing equations

Description

QA/QC: Check for errors in pairing equations

Usage

error_check_Pxxx(P.xxx.name, P.xxx.value, P.xxx.eq.name = NA, i = NA, ...)

Arguments

P.xxx.name

name of scalar to check

P.xxx.value

value for a given P.xxx

P.xxx.eq.name

full name of equation

i

Current iteration of runFAC()

...

additional paramters

Examples

P.xxx.names <- c("P.cgg", "P.cgp","P.cpg", "P.cpp","P.kgg", "P.kgp","P.kpg", "P.kpp")
P.xxx.values <- runif(min = -0.8,max = 1.2,n= length(P.xxx.names))
P.xxx.values[3] <- NaN

error_check_Pxxx(P.xxx.name = P.xxx.names[3],
                 P.xxx.value = P.xxx.values[3])

for(i in 1:length(P.xxx.names)){
   error_check_Pxxx(P.xxx.name = P.xxx.names[i],
                 P.xxx.value = P.xxx.values[i])}

brouwern/FACavian documentation built on June 1, 2024, 10:32 p.m.