function to translate from soil, veg, and mature age data (already in a table) to the required read-in model parameters

add_carbon_info(
  data,
  carbon_info_table,
  matchvars = c("region", "GLU", Cdensity_LT = "Land_Type")
)

Arguments

data

= input data tibble to receive carbon info

carbon_info_table

= table with veg and soil carbon densities, and mature.age

matchvars

= a character vector for by = in left_join(data, carbon_info_table, by = ...)

Value

the original table with carbon density info added