ropensci / coder

Classification of Cases into Deterministic Categories
https://docs.ropensci.org/coder/
22 stars 4 forks source link

ta bort alfanumeriska tecken från exempel #131

Closed eribul closed 3 years ago

eribul commented 3 years ago

Några tecken i smutsiga strängen råkar vara alfanumeriska. Ta bort!

# Assume that codes contain unwanted "dirty" characters
# Those could for example be a dot used by ICD-10 (i.e. X12.3 instead of X123)
dirt <- c(strsplit(c("½!#¤%&/()=?`,.-_"), split = ""), recursive = TRUE)