I calculated a dataset of tree tops points with their height. I did it thanks to the vwf (variable window filter) function of the Forest Tools package, which analyzes the forest cover from a CHM (Canopy Height Model) raster, following these instructions: https://cran.rstudio.com/web/packages /ForestTools/vignettes/treetopAnalysis.html.
Now I would like to divide the points found by height classes: maximum height is 30, I would like to do 6 classes of width 5 m. How could I do? Thanks so much