Giter VIP home page Giter VIP logo

svibuildr's People

Contributors

sebastianrowan avatar

Watchers

 avatar

svibuildr's Issues

get_svi_from_cdc() fails without geometry on some states

Getting CDC data for Louisiana, Montana, and Nebraska all fail when getting the csv data (geometry = False).

Error appears to be coming from the call to readr::read_csv(), and may be caused by some issue related to downloading the file and saving it to the tempfile location. The error does not occur when I manually download the file in the browser and open the csv directly into R.

When attempting to open the file, R does not throw an error, but rather crashes immediately with a message saying "R encountered a fatal error", so this issue can not be fixed with a simple try statement.

One option to fix could simply be to check if user is requesting data for these states, and if so download data with geometry and pass to st_drop_geometry() before returning.

Other fixes will require a better understanding of what specifically is causing the bug.

Errors caused by states with leading zero in FIPS

  1. When state has leading zero (AKA single digit) in FIPS code, causes error in validating the fips code when argument is given as a numeric rather than a character (06 vs "06"). Error says 6 is not a valid FIPS code because the valid code is "06".

Fix should be a minor tweak to check for single digit numeric and add the leading zero.

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.