(Note: functions in this package are now part of the rpostgis
package, released on CRAN.)
R library of functions for loading spatial tables from PostGIS/PostgreSQL databases in R.
Package can be installed in R using devtools
.
library(devtools)
install_github('dnbucklin/pgis2r')
All functions take as their first argument a database connection to a PostgreSQL database established with the R package RPostgreSQL
, e.g.:
library(RPostgreSQL)
drv<-dbDriver("PostgreSQL")
conn<-dbConnect(drv,dbname='dbname',host='host',port='5432',user='user',password='password')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.