Properties of the values of the file that a RasterLayer object points to

dataSize returns the number of bytes used for each value (pixel, grid cell) dataSigned is TRUE for data types that include negative numbers.

dataSize(object)
dataSigned(object)

Arguments

object

Raster* object

See also

Value

varies

Examples

r <- raster(system.file("external/test.grd", package="raster"))
dataSize(r)
#> [1] 4
dataSigned(r)
#> [1] TRUE
dataType(r)
#> [1] "FLT4S"