
Last chance! 50% off unlimited learning
Sale ends in
as.integer
for object of class ursaRaster
truncates decimal part of image values and then converts to type integer
.
# S3 method for ursaRaster
as.integer(x, ...)
ursaRaster
object
Other arguments which passed to function as.integer
of package base.
Object of class ursaRaster
where storage.mode
of values is integer
.
# NOT RUN {
session_grid(NULL)
a <- pixelsize()
a <- a-min(a)+0.5
str(ursa_value(a))
print(storage.mode(a$value))
b <- as.integer(a)
str(ursa_value(b))
print(storage.mode(b$value))
# }
Run the code above in your browser using DataLab