We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the spatial files have been added to rdhs, there will probably be a good use for some fuzzy mathcing of admin names etc.
So remember to add this in, with something like:
match_clean <- function(a,b){ a <- gsub("[[:punct:][:space:]]","",tolower(stringi::stri_trans_general(a, "latin-ascii"))) b <- gsub("[[:punct:][:space:]]","",tolower(stringi::stri_trans_general(b, "latin-ascii"))) ret <- match(a,b) if(sum(is.na(ret)>0)){ dists <- stringdist::seq_distmatrix(lapply(a,utf8ToInt),lapply(b,utf8ToInt)) ret[is.na(ret)] <- apply(dists[which(is.na(ret)),,drop=FALSE],1,which.min) print(unique(cbind(a,b[ret]))) } return(ret) }
The text was updated successfully, but these errors were encountered:
Spatial Boundaries added (#71) and a better stringmatch function for …
944eb6b
…matching added for the future (#83)
No branches or pull requests
When the spatial files have been added to rdhs, there will probably be a good use for some fuzzy mathcing of admin names etc.
So remember to add this in, with something like:
The text was updated successfully, but these errors were encountered: