Learn R Programming

envirem (version 2.3)

dataTypeCheck: Data Type Check

Description

Determines the best data type to implement when writing the raster to file

Usage

dataTypeCheck(r)

Arguments

r

raster object

Author

Pascal Title

Details

Function to determine the most memory efficient data type given whether or not the raster contains integer or non-integer values, and the range of those values, based on the definitions described in dataType.

Examples

Run this code
rasterFiles <- list.files(system.file('extdata', package='envirem'), full.names=TRUE)
r <- raster(rasterFiles[1])
dataTypeCheck(r)

Run the code above in your browser using DataLab