R applyied to forestry