classRaster_as.table: Frequency of unique values

as.tableR Documentation

Frequency of unique values

Description

as.table is an implementation of function base::table for values of raster image.

Usage

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

ursa_table(x, ...)

Arguments

x

ursaRaster object.

...

Other arguments which passed to function table of package base.

Details

If ursaRaster has a colortable, then values are replaced by names of categories.

ursa_table is synonym to method as.table for class `ursaRaster`.

Value

Object of class table.

Author(s)

Nikita Platonov platonov@sevin.ru

Examples

session_grid(NULL)
a <- colorize(pixelsize(),nbreak=4)
t1 <- as.table(a)
print(t1)
str(t1)
ursa_colortable(a) <- NULL
t2 <- as.table(a)
print(t2)

ursa documentation built on Sept. 30, 2024, 9:35 a.m.