Skip to content

Commit

Permalink
Merge pull request #112 from runapp-aus/stricter-fuzzy-match-in-clean…
Browse files Browse the repository at this point in the history
…-states
  • Loading branch information
wfmackey authored Jan 31, 2024
2 parents a0bc5ce + 57b6316 commit e75f631
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 3 deletions.
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 = "wfmackey@gmail.com", role = c("aut", "cre")),
person("Matt", "Johnson", email = "mrjoh3@gmail.com", role = c("aut")),
person("David", "Diviny", email = "david.diviny@nousgroup.com.au", 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.

0 comments on commit e75f631

Please sign in to comment.