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

reduce threshold for fuzzy matching in clean_state() #112

Merged
merged 2 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: strayr
Type: Package
Title: Ready-to-use Australian common structures and classifications and tools for working with them
Version: 0.2.2.9001
Version: 0.2.2.9002
Authors@R: c(person("Will", "Mackey", email = "[email protected]", role = c("aut", "cre")),
person("Matt", "Johnson", email = "[email protected]", role = c("aut")),
person("David", "Diviny", email = "[email protected]", role = c("aut")),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# strayr (development version)
* Threshold for fuzzy matching (`max_dist`) in clean_state() has been reduced to 0.2 from 0.4
* `create read_correspondence_tbl()` reads correspondence tables from
`absmapsdata` similarly to `read_absmap()`
* updated `anzsco2006` to include leading zeros in codes (see ). This is a backwards incompatible change that may cause issues (not enough for a major version progression)
Expand Down
2 changes: 1 addition & 1 deletion R/clean_state.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#' @importFrom stringdist amatch
#' @export

clean_state <- function(x, to = "state_abbr", fuzzy_match = TRUE, max_dist = 0.4, method = "jw"){
clean_state <- function(x, to = "state_abbr", fuzzy_match = TRUE, max_dist = 0.2, method = "jw"){


if(!is.logical(fuzzy_match)){
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
Binary file modified data/anzsco2009.rda
Binary file not shown.
Binary file modified data/anzsco2013.rda
Binary file not shown.
Binary file modified data/anzsco2019.rda
Binary file not shown.
Binary file modified data/anzsco2021.rda
Binary file not shown.
Binary file modified data/anzsco2022.rda
Binary file not shown.
Binary file modified data/anzsic2006.rda
Binary file not shown.
Binary file modified data/anzsic_isic.rda
Binary file not shown.
Binary file modified data/asced_foe2001.rda
Binary file not shown.
Binary file modified data/asced_qual2001.rda
Binary file not shown.
Binary file modified data/palette_state_name_2016.rda
Binary file not shown.
Binary file modified data/school_terms.rda
Binary file not shown.
Binary file modified data/state_abb_au.rda
Binary file not shown.
Binary file modified data/state_name_au.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/clean_state.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading