# A Norway spruce has a diameter of 17.5 cm at age 45. Estimate
# its diameter at age 55
d_age_gnfi3(10, 55, 17.5, 45) # 10 is ger_nfi_2012 code for Norway spruce
# Do the same but 10 years backward in time (dbh at age 35)
d_age_gnfi3(10, 35, 17.5, 45)
# Apply for more than one tree, different species, same age
d_known <- c(23.1, 16.2, 35.2, 19.3, 21.8)
species <- as_fe_species_tum_wwk_short(c(3, 3, 3, 6, 6))
d_age_gnfi3(
species, age_yr = 50, dbh_cm_known = d_known, age_yr_known = 40
)
Run the code above in your browser using DataLab