Last chance! 50% off unlimited learning
Sale ends in
clump(x, ...)
filename
Output filename. Default = ''
format
Character. Output file type. See writeRaster
datatype
Character. Output data type; can be 'INT', 'FLT', or a complete datatype description, see dataType
overwrite
Logical. If TRUE
, "filename" will be overwritten if it exists
progress
Character. "text", "window", or "" (the default, no progress bar)
}r <- raster(ncols=10, nrows=10)
r[] <- round(runif(ncell(r))*0.6 )
rc <- clump(r)
freq(rc)
#plot(rc)
Run the code above in your browser using DataLab