Git Product home page Git Product logo

censusxy's Introduction

censusxy

lifecycle R build status Coverage status CRAN_status_badge cran checks Downloads DOI

The censusxy package is designed to provide easy access to the U.S. Census Bureau Geocoding Tools in R. censusxy has also been developed specifically with large data sets in mind - only unique addresses are passed to the API for geocoding. If a data set exceeds 1,000 unique addresses, it will be automatically subset into appropriately sized API calls, geocoded, and then put back together so that a single object is returned. There is also support for parallel processing of requests, which can significantly shorten the time it takes to batch geocode large numbers of addresses.

What’s New in v1.0.2.9000?

  • censusxy now supports parallelization on Windows (macOS and Linux had support for this since v1.0.0), thanks to a PR from Christopher Kenny!

Installing censusxy

The easiest way to get censusxy is to install it from CRAN:

install.packages("censusxy")

Alternatively, the development version of censusxy can be accessed from GitHub with remotes:

# install.packages("remotes")
remotes::install_github("slu-openGIS/censusxy")

Usage

The censusxy package contains two data sets, stl_homicides (n = 1,812) and stl_homicides_small (n = 24), that can be used to demonstrate the functionality of the package. The stl_homicides_small data is included specifically for quick experimentation, as its small sample size ensures an expedient response from the API.

To test censusxy’s functionality, load the package and either of the sample data sets:

library(censusxy)

data <- stl_homicides

There are two possible variable configurations (simple and full, specified using the output argument), and two possible output class types (dataframe and sf, specified using the class argument):

homicide_sf <- cxy_geocode(data, street = "street_address", city = "city", state = "state", 
    output = "simple", class = "sf")

If you request an sf object, you easily preview the results with the mapview package:

> mapview::mapview(homicide_sf)

Contributor Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

censusxy's People

Contributors

bransonf avatar christopherkenny avatar

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.