Giter Site home page Giter Site logo

addressr's People

Contributors

mcclellandlegge avatar mjbroerman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mjbroerman

addressr's Issues

usage in Readme no longer functions

Thanks for the package! This seems to be the best one out there still.

The readme basic usage no longer works:

> library("data.table")
> library("addressr")
> address_fl <- system.file("extdata", "wedding-addresses.csv", package = "addressr")
> addresses  <- fread(address_fl)
> prepareAddress(username, addresses, address_column = 'Address', max_tries = 3L)
No 'id' column supplied, creating one...
Geocoding address string...
Error: Google now requires an API key.
       See ?register_google for details.

validateAddress() throws data.table error

This is my main use case. Although supplied, the error claims in doesn't have "id".

City <- 'Clearwater'
State <- 'FL'
Address2 <- '3044 Oak Hill Road'
Address1 <- "33759"
Zip4 <- "1319"

address_dt <- data.table("id" = "1", Address1, Address2, City, State, Zip5, Zip4)
address_df <- data.frame("id" = "1", Address1, Address2, City, State, Zip5, Zip4)

addressr::validateAddress(username, address_dt)
Error in colnamesInt(x, neworder, check_dups = FALSE) :
argument specifying columns specify non existing column(s): cols[1]='id'
In addition: Warning message:
In data.table::set(item_dt, i = NULL, j = "id", value = id) :
Column 'id' does not exist to remove
addressr::validateAddress(username, address_df)
Error in [.data.frame(address, , :=((atags), lapply(.SD, function(x) { :
unused argument (.SDcols = atags)

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.