# Estimate the crown diameter of a Scots pine with a stem diameter
# at breast height of 45.2 cm and a total height of 29.2 m:
crown_diameter_silva(
species_id = "3", # will be internally converted to tum_wwk_short
dbh_cm = 45.2,
height_m = 29.2
) # 6.1 m (rounded)
# Crown diameter estimate for a European beech with
# the same height and diameter:
crown_diameter_silva(
species_id = "5", # will be internally converted to tum_wwk_short
dbh_cm = 45.2,
height_m = 29.2
) # 9.6 m (rounded)
# Run vectorized
spec <- mm_forest_1_fe_stand_spatial$trees$species_id
d <- mm_forest_1_fe_stand_spatial$trees$dbh_cm
h <- mm_forest_1_fe_stand_spatial$trees$height_m
crown_diameter_silva(spec, d, h)
Run the code above in your browser using DataLab