Description Usage Arguments Details Value Examples
Compute statistics using cell data in a gt_RasterLayer object.
| 1 2 3 4 | gt_cellStats(x)
## S4 method for signature 'gt_RasterLayer'
gt_cellStats(x)
 | 
| x | 
 | 
This function calculates the mean, median, mode, 
standard deviation, minimum, and maximum of the values in a raster. This function
is similar to cellStats.
numeric object.
| 1 2 3 4 5 6 7 | ## Not run: 
g <- gt_raster(raster::raster(matrix(c(1:6), ncol=3),
                              crs=sp::CRS('+init=epsg:4326'),
                              xmn=0, xmx=3, ymn=2, ymx=10))
gt_cellStats(g)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.