Skip to contents

get lat,lon from table that contains USPS addresses

Usage

latlon_from_address_table(x)

Arguments

x

data.frame or can be missing if interactive

Value

same as output of latlon_from_address()

Examples

address_from_table(test_address_table)
#> [1] "1200 Pennsylvania Ave Washington DC "
#> [2] "5 pARK AVE NY NY "                   

## fname <- system.file("testdata/address/street_address_9.xlsx", package = "EJAM")
## test_addresses_9b <- address_from_table(fname)
if (FALSE) { # \dontrun{

# This requires first attaching the AOI package.

pts <- latlon_from_address(test_addresses_9[1:2])
## out <- ejamit(pts, radius = 1)
## ejam2report(out)

latlon_from_address_table(test_address_table)
latlon_from_address_table(test_address_table_withfull)
## *** NOTE IT FAILS IF A COLUMN WITH STREET NAME ONLY IS CALLED "address"
##   instead of that storing the full address.
} # }
fixcolnames_infer(currentnames = test_address_parts1)
#> [1] "lat"     "lon"     "address" "street"  "city"    "state"   "zip"    
#> attr(,"ejam_package_version")
#>  Version 
#> "2.32.0" 
#> attr(,"ejscreen_version")
#> EJScreenVersion 
#>          "2.32" 
#> attr(,"ejscreen_releasedate")
#> EJScreenReleaseDate 
#>        "2024-08-12" 
#> attr(,"acs_releasedate")
#> ACSReleaseDate 
#>   "2023-12-07" 
#> attr(,"acs_version")
#>  ACSVersion 
#> "2018-2022" 
#> attr(,"census_version")
#> CensusVersion 
#>        "2020" 
#> attr(,"date_saved_in_package")
#> [1] "2024-08-22"
fixcolnames_infer(currentnames = names(test_address_table))
#> [1] "Acol"         "street"       "city"         "state"        "zip"         
#> [6] "other_column"