Skip to content

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

@k5cents

Description

@k5cents

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)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions