Learn R Programming

pRecipe (version 3.0.1-3)

tabular: Transform raster into data.table

Description

Function to transform a raster brick into a data.table

Usage

tabular(x)

# S4 method for Raster tabular(x)

# S4 method for character tabular(x)

Value

data.table

Arguments

x

Raster* object; filename (character, see details)

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab