R/standprop_yrly_to_param.R
standprop_yearly_to_param.Rd
Takes a data.frame of yearly stand properties, trims/extends the columns height, maxlai,
sai, densef, and age for the years in out_yrs
, and updates the provided parameter list.
standprop_yearly_to_param(standprop_yearly, param_b90, out_yrs)
The param_b90 list-object with updated items maxlai, height, height_ini, sai, sai_ini, densef, densef_ini, age, age_ini.
param_b90 <- set_paramLWFB90()
dat <- slb1_standprop
years <- 2002:2005
param.new <- standprop_yearly_to_param(dat,
param_b90,
years)
identical(param.new$maxlai, dat$maxlai[dat$year %in% years])
#> [1] TRUE
identical(param.new$height, dat$height[dat$year %in% years])
#> [1] TRUE