README.md

(Note: functions in this package are now part of the rpostgis package, released on CRAN.)

pgis2r

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')


dnbucklin/pgis2r documentation built on May 15, 2019, 9:38 a.m.