| band_stat | R Documentation | 
For each band of ursaRaster object, band_stat returns certain statistics (mean, sd, sum, min, max, number of non-NA pixels, number of NA pixels). Regarding to each band, it is global operations of map algebra.
band_stat(x, grid = FALSE, raw = FALSE)
x | 
 Object of class   | 
grid | 
 Logical. If   | 
raw | 
 Logical. For the case of raster values are categories, if   | 
If raster values are not in memory or grid=TRUE then ursa_info is returned.
Generic function print for object of class ursaRaster uses returned value of band_stat function with formatted columns.
Statistics is computed for omitted NA values.
data.frame. Row names are indices of bands. Column names are:
name | 
 Band name.  | 
mean | 
 Mean value.  | 
sd | 
 Value of standard deviation with   | 
sum | 
 Sum of values.  | 
min | 
 Minimal value.  | 
min | 
 Maximal value.  | 
n | 
 Number of non-  | 
nNA | 
 Number of   | 
Nikita Platonov platonov@sevin.ru
Columns extraction from returned data frame is in the group of band.* functions.
session_grid(NULL)
s <- substr(as.character(sessionInfo()),1,48)
a <- reclass(ursa_dummy(mul=1/2,bandname=s),ramp=FALSE)
band_stat(a,grid=TRUE)
b2 <- band_stat(a)
b3 <- band_stat(a,raw=TRUE)
str(b2)
str(b3)
print(b2)
print(a) ## 'print.ursaRaster' uses 'band_stat'
print(a,raw=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.