addGeometry | R Documentation |
Enriches land use data on cluster resolution geometry information as required for conversion by magclass::as.SpatVector
addGeometry(x, clustermap)
x |
Landuse data on cluster/cell resolution as a magclass object |
clustermap |
A dataframe mapping with columns cluster, cell, and country |
A magclass object enriched with geometry information
Jan Philipp Dietrich, Pascal Sauer
## Not run:
landUse <- magpie4::land("fulldata.gdx", level = "cell")
clustermap <- readRDS(Sys.glob("clustermap_*.rds"))
landUseEnriched <- magpie4::addGeometry(landUse, clustermap)
attr(landUseEnriched, "geometry")
attr(landUseEnriched, "crs")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.