classRaster_sort: Sort multiband raster by band names.

sortR Documentation

Sort multiband raster by band names.

Description

Changing order of bands based on sorting of band names.

Usage

## S3 method for class 'ursaRaster'
sort(x, decreasing = FALSE, ...)

Arguments

x

Object of class ursaRaster

decreasing

Logical. Should the sort be increasing or decreasing? Not available for partial sorting. Default is FALSE.

...

Other arguments, which are passed to S3 method for sorting characters.

Details

Function sort() for ursaRaster assumes bands reordering based on character band names.

Value

Object of class ursaRaster

Author(s)

Nikita Platonov platonov@sevin.ru

Examples

a <- ursa_dummy(nband=7L)
a
sort(a)
sort(a,decreasing=TRUE)

ursa documentation built on Dec. 28, 2022, 2:18 a.m.