applyNth: Apply an nth order transfomration

Description Usage Arguments Examples

Description

Apply a mathematical transformation, e.g. new = a + b(old) + c(old)^2 + c(old)^3 + ...etc

Usage

1
2
applyNth(rB3in, startDate, endDate, varNames, coeffs, logID, Reason,
  showPlot, savePlot)

Arguments

rB3in

rB3 object input

startDate

start date

endDate

endDate

varNames

list of variable names or keywords

coeffs

a vector of coefficients, from 0 to nth order (e.g., c(2,3,4,5) == 5x^3 + 4x^2 + 3x + 2)

showPlot

display figure in plots window (TRUE/FALSE)

savePlot

save figure to a path (TRUE/FALSE)

Examples

1
rB3in <- applyEqn(rB3in = rB3in,varNames = 'TmpWtr', coeffs = c(1,1,1,1), showPlot = TRUE)

kohjim/rB3 documentation built on May 10, 2019, 9:51 a.m.