Last chance! 50% off unlimited learning
Sale ends in
is.factor(x)
asFactor(x, ...)
labels(object, ...)
labels(object) <- value
r <- raster(nrow=10, ncol=10)
r[] <- (runif(ncell(r)) * 10)
is.factor(r)
Run the code above in your browser using DataLab