Learn R Programming

ITGM (version 0.42)

project: Project Volume based in Ages

Description

this function provides a list of volume projections in a future age or from one to another future age

Usage

project(
  firstAge = NaN,
  lastAge,
  fitDAP,
  fitHT,
  base,
  mapper = list(age1 = "idade1", age2 = "idade2", dap1 = "dap1", dap2 = "dap2", ht1 =
    "ht1", ht2 = "ht2"),
  calcVolume = calculaVolumeDefault,
  withoutBaseFields = F
)

Arguments

firstAge

early age. if only one age use NaN

lastAge

late age for project or the age at which one wants to get the volume

fitDAP

an adjustment of the return type of a function lm() from dap

fitHT

an adjustment of the return type of a function lm() from ht

base

a dataset to project

mapper

the mapping for the name of the old fields age, dap and ht in base

calcVolume

function to calc volume based base, dap e ht, default calculaVolumeDefault of Fgmutils

withoutBaseFields

want returned projected volume no contains the fields of the base? default no