The lines
round(exclude_data > 0.5) and
round(include_data > 0.5)
cause the raster name to be reset to "layer" which then gets carried through to the WTW attributes input table.
Solution is to do this rounding explicitly using:
raster::reclassify(include_data, matrix(c(-Inf,0.5,0, 0.5,Inf,1), ncol = 3, byrow = TRUE))
The lines
round(exclude_data > 0.5)
andround(include_data > 0.5)
cause the rastername
to be reset to "layer" which then gets carried through to the WTW attributes input table.Solution is to do this rounding explicitly using:
raster::reclassify(include_data, matrix(c(-Inf,0.5,0, 0.5,Inf,1), ncol = 3, byrow = TRUE))