Hi I have an error in Rstudio when I want to replace the NA values into 0.
"Error in value[j, ] : incorrect number of dimensions
In addition: Warning message:
In isFALSE(simplify) :
closing unused connection 3 (/var/folders/ym/g7mjd6cn7k3fbm0sks8qp8fr0000gn/T//RtmpuX2BcT/raster///r_tmp_2020-03-29_183744_11491_95243.gri)"
Hers's the function
rs1920[is.na(rs1920)] <- 0 #after run that I have that error. No idea...