Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abbrev_full doesn't isolate full, resulting in half-abbreviations (e.g., "West VA") #2

Open
k5cents opened this issue Sep 17, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@k5cents
Copy link
Collaborator

k5cents commented Sep 17, 2019

When abbreviating the state names, for example, abbrev_full() replaces "Virginia" with "VA", including inside "West Virginia." This prevents it from then abbreviating the new "West VA."

library(campfin)
packageVersion("campfin")
#> [1] '0.0.0.9010'
abbrev_full(
  x = "West Virginia",
  full = state.name,
  rep = state.abb
)
#> [1] "West VA"

Created on 2019-09-17 by the reprex package (v0.3.0)

@k5cents k5cents added the bug Something isn't working label Sep 17, 2019
@k5cents k5cents self-assigned this Sep 17, 2019
@k5cents k5cents changed the title abbrev_full does not isolate full string, resulting in half-abbreviations (e.g., "West VA") abbrev_full doesn't isolate full, resulting in half-abbreviations (e.g., "West VA") Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant