classRaster_as.integer: Transform values to type integer

as.integerR Documentation

Transform values to type integer

Description

as.integer for object of class ursaRaster truncates decimal part of image values and then converts to type integer.

Usage

## S3 method for class 'ursaRaster'
as.integer(x, ...)

Arguments

x

ursaRaster object

...

Other arguments which passed to function as.integer of package base.

Value

Object of class ursaRaster where storage.mode of values is integer.

Author(s)

Nikita Platonov platonov@sevin.ru

Examples

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))

ursa documentation built on Sept. 12, 2022, 1:05 a.m.