tabular {pRecipe} | R Documentation |
Transform raster into data.table
Description
Function to transform a raster brick into a data.table
Usage
tabular(x)
## S4 method for signature 'Raster'
tabular(x)
## S4 method for signature 'character'
tabular(x)
Arguments
x |
Raster* object; filename (character, see details) |
Value
data.table
Examples
## Not run:
download_data("gldas-vic", tempdir(), timestep = "yearly")
r <- raster::brick(paste0(tempdir(),
"/gldas-vic_tp_mm_land_194801_201412_025_yearly.nc"))
s <- tabular(r)
## End(Not run)
[Package pRecipe version 3.0.1-3 Index]