| dt.to.brick | R Documentation | 
The function dt.to.brick transforms a data.table object to brick (raster) format
dt.to.brick(dt, var_name)
| dt | The data table object to be transformed. It must be in a four-column format, with the coordinate columns named as "lat" & "lon" and time values as "time". | 
| var_name | The name (chr) of the column in the data table ( | 
dt as a brick object.
## Not run: 
aa <- expand.grid(lat = seq(40, 50, 1),
                 lon = seq(20, 30, 1),
                 time = seq(1900, 2000, 1))
aa$anomaly = rnorm(nrow(aa))
aa <- brick(dt.to.brick(aa, "anomaly"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.