Retrieve and combine us boundary, population and income data

Description

Retrieve and combine us boundary, population and income data

Usage

1
2
3
gcensus(country = "USA", year = 2010, level = 1, subset = NULL,
  database = c(dbname = "gcensus", user = "gcensus", host = "localhost", port
  = 5433), income = TRUE, crs = "EPSG:4326", simplifyTolerance = 0)

Arguments

country

string specifying a country

year

census year

level

see below

subset

passed as where to postgreql

database

details of database to retrieve data from

income

logical, retrieve income data

crs

coordinate reference system for the output

simplifyTolerance

if non-zero, simplify polygons with this tolerance

Details

level abbreviation name 0 USA United States of America 1 STATE State 1.1 PUMA Public Use Microdata Areas 1.2 ZCTA Zip Code Tabulation Areas 2 COUNTY County 2.1 COSUB County Subdivision 3 TRACT Tract 4 BLKGRP Block Group

Canadian Census:

level abbreviation name 0 USA United States of America 1 STATE State 1.1 PUMA Public Use Microdata Areas 1.2 ZCTA Zip Code Tabulation Areas 2 COUNTY County 2.1 COSUB County Subdivision 3 TRACT Tract 4 BLKGRP Block Group

Examples

1
2
3
4
5
6
7
## Not run: 
usa = gcensus(country = "USA", year = 2010, level = 1, subset = NULL,
  database = c(dbname = "gcensus", user = "gcensus", 
  host = "localhost", port = 5433), 
  income = TRUE, crs = "EPSG:4326", simplifyTolerance = 0)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.