Geospatial data integration framework that merges raster, spatial polygon, and (dynamic) spatial points data into a spatial (panel) data frame at any geographical resolution.
geomerge
is a flexible framework for geospatial data integration that merges raster, spatial polygon, and (dynamic) spatial points data into a spatial (panel) data frame at any geographical resolution.
The package can be installed through the CRAN repository.
install.packages("geomerge")
Or the development version from Github
# install.packages("devtools")devtools::install_github("css-konstanz/geomerge")
The following simple illustrations use a number of datasets for Nigeria in 2011 that are included with the package. A more extensive user guide will be added shortly.
data(geomerge) # 1) Simple static integration of polygon dataoutput <- geomerge(geoEPR,target=counties,silent=TRUE)summary (output) # 2) Static integration for point, polygon, raster dataACLED.events <- ACLED[,names(ACLED)%in%c('EVENT_TYPE')]AidData.projects <- AidData[,names(AidData)%in%c('project_id')]output <- geomerge(ACLED.events,AidData.projects,geoEPR,gpw,na.rm=TRUE,target=counties)summary(output)plot(output) # 3) Dynamic point data integration for numeric variablesACLED.fatalities <- ACLED[,names(ACLED)%in%c('timestamp','FATALITIES')]AidData.commitment <- AidData[,names(AidData)%in%c('timestamp','commitme_1')]output <- geomerge(ACLED.fatalities,AidData.commitment,geoEPR,target=counties,time=c("2011-01-01", "2011-12-31","1"),t_unit='months',point.agg='sum')summary(output)plot(output) # 4) Population weighted assignmentoutput <- geomerge(geoEPR,target=counties,assignment='max(pop)',population.data = gpw)summary(output)plot(output)
geomerge
in R using citation(package = 'geomerge')
// // geomerge - Updates and Bug Fixes // // //
== 0.3.1 (31 Jul 2018) ==