slu-openGIS / postmastr

R package for Processing and Parsing Untidy Street Addresses
https://slu-opengis.github.io/postmastr/
GNU General Public License v3.0
37 stars 8 forks source link

pm_parse with PO Boxes #31

Open jshoblock opened 8 months ago

jshoblock commented 8 months ago

When calling pm_parse with an address that only has a PO Box and no street, the following error is returned: Error in x:y : argument of length 0

Expected behavior Address formatted to PO Box Number, City, State, Zip

To Reproduce addr1b <- tibble(pm.id = 1, pm.uid = 1, pm.type = "full", address = "PO Box 111, Los Angeles, CA 90027") pm_parse(addr1b, input = "full", address = "address", output = "short")

Desktop (please complete the following information): R version 4.1.1 (2021-08-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045)

Additional context postmastr:0.1.0.9000