Giter Club home page Giter Club logo

zctadb's Introduction

zctaDB

R build status R-CMD-check

The goal of zctaDB is to add ZIP code-level geomarkers to your data.

Available geomarkers include

Category Variables More information
Population and racial composition total population of ZCTA
number and percentage of white non-Hispanic residents
number and percentage of black non-Hispanic residents
racial index of concentration at the extremes (ICE)
racial ICE published
Road proximity length and density of primary roads
length and density of secondary roads
DeGAUSS roads container
EJ Screen traffic proximity
ozone concentration
PM_{2.5} concentration
diesel PM concentration
respiratory hazard index
EJ Screen
Land Cover percent impervious land
percent green land
percent tree canopy
MRLC
Community Deprivation fraction assisted income
fraction high school education
median household income
fraction no health insurance
fraction poverty
fraction vacant housing
deprivation index
deprivation index
NARR Cell Identifier narr cell *Note that this is based on centroids of 2010 ZCTAs, but there are alternative ways to join these spatial datasets that may be better, such as all overlapping cells and corresponding area-based weights or using the the cell that most overlaps the ZCTA
addNarrData
Average Annual Daily Traffic Density density of roads with moving traffic (meters of road per square meter of area)
density of roads with stop and go traffic (meters of road per square meter of area)
moving traffic density (vehicle-meters per square meter of area)
stop and go traffic density (vehicle-meters per square meter of area)
moving truck traffic density (truck-meters per square meter of area)
stop and go truck traffic density (truck-meters per square meter of area)
aadt

For more information on these variables and how they are used in this package, please view the documentation for the corresponding function (e.g., ?zctaDB::add_road_data).

Installation

You can install zctaDB from from GitHub with:

# install.packages("remotes")
remotes::install_github("geomarker-io/zctaDB")

Example

Each function in zctaDB adds variables to your data based on a column named zcta that contains a 5-digit ZIP code.

library(zctaDB)
d <- data.frame(id = c('abc', 'def', 'ghi'),
            zcta = c('45229', '45056', '47012'))

add_road_data(data = d)
#> no column called 'year' -- assuming 2010 ZCTAs.
#>    id  zcta year primary_road_length primary_road_density secondary_road_length
#> 1 abc 45229 2018            3721.548         5.263361e-04              8508.693
#> 2 def 45056 2018               0.000         0.000000e+00             97575.410
#> 3 ghi 47012 2018            8783.797         2.049049e-05             69904.720
#>   secondary_road_density
#> 1           0.0012033790
#> 2           0.0004956594
#> 3           0.0001630709

zctadb's People

Contributors

erikarasnick avatar

Watchers

James Cloos avatar Cole Brokamp avatar

zctadb's Issues

add narr cell identifier data type

calculated on the centroid of each 2010 ZCTA

make sure to note in README about this method and make it clear that there are other methods to join the two spatial datasets better

link to addNarrData package in documentation as well

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.