Closed trashbirdecology closed 4 years ago
@TrashBirdEcology That's a good idea, thanks for the request. I will try to implement both of your suggestions (especially a, so the .csv files can be removed).
If you need this feature urgently, you can do the following in the meantime to get the full FIPS tables:
# states
read.csv(system.file("extdata", "state_fips.csv", package = "usmap"))
# counties
read.csv(system.file("extdata", "county_fips.csv", package = "usmap"))
Thanks!
__
Jessica L. Burnett (she/her)
Mendenhall Postdoctoral Fellow & Research Ecologist
US Geological Survey Science Analytics and Synthesis https://www.usgs.gov/core-science-systems/science-analytics-and-synthesis
Github http://github.com/trashbirdecology
ORCID: 0000-0002-0896-5099 https://orcid.org/0000-0002-0896-5099 __
Join the Community for Data https://www.usgs.gov/centers/cdi! All welcome.
On Mon, Jan 6, 2020 at 2:49 PM Paolo Di Lorenzo notifications@github.com wrote:
That's a good idea, thanks for the request. I will try to implement both of your suggestions (especially a, so the .csv files can be removed).
If you need this feature urgently, you can do the following to get the full FIPS tables:
states
utils::read.csv(system.file("extdata", "state_fips.csv", package = "usmap"))
counties
utils::read.csv(system.file("extdata", "county_fips.csv", package = "usmap"))
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pdil/usmap/issues/28?email_source=notifications&email_token=ACL2TNO3AVNS4XGA7JKQBRTQ4ORPRA5CNFSM4KDHGICKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIG44RI#issuecomment-571330117, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL2TNPVY7LCJS5GU2B4UPDQ4ORPRANCNFSM4KDHGICA .
Actually not going to do (a) for now since the csv files are in a different format than what is used in the package, might cause some unforeseen problems but I will revisit it at later time (PR's welcome though 😄).
For now I am implementing the ability to do fips()
and fips_info()
with no parameters to get the full list/data frame.
Great package, thanks!
I request you add one or both of the following: a) a data object (
retrievable via utils::data()
) which returns all FIPs info b)fips_info()
and/orfips()
returns all FIPS info when blank, or specifying states="all", etc.Perhaps this feature is buried elsewhere?