This function returns a factor with diameter classes of 5 cm for a given vector with diameter data in mm.

give_diamclass_5cm(diameterdata)

Arguments

diameterdata

vector with diameter data in millimetre

Value

vector with factors in diameter classes of 5 cm

Examples

library(forrescalc)
give_diamclass_5cm(c(80, 1512, 2222))
#> [1] 5 - 10 cm    150 - 155 cm 220 - 225 cm
#> 49 Levels: 5 - 10 cm 10 - 15 cm 15 - 20 cm 20 - 25 cm 25 - 30 cm ... 245 cm +