raster tips

library(raster)
library(rgdal)

DSM_HARV <- raster("D:/Downloads/NEON-DS-Airborne-Remote-Sensing/HARV/DSM/HARV_dsmCrop.tif")

DSM_HARV 

plot(DSM_HARV)

a <- values(DSM_HARV)

a <- a + 10

values(DSM_HARV) <- a

DSM_HARV@data@values