powered by
Changing order of bands based on sorting of band names.
# S3 method for ursaRaster sort(x, decreasing = FALSE, ...)
Object of class ursaRaster
ursaRaster
Logical. Should the sort be increasing or decreasing? Not available for partial sorting. Default is FALSE.
FALSE
Other arguments, which are passed to S3 method for sorting characters.
Nikita Platonov platonov@sevin.ru
Function sort() for ursaRaster assumes bands reordering based on character band names.
sort()
a <- ursa_dummy(nband=7L) a sort(a) sort(a,decreasing=TRUE)
Run the code above in your browser using DataLab