file.choose()
> library(stringi) > stri_replace_all_regex(a, c("[Tt]housands", "[Hh]undreds"), c(1000, 100), vectorize_all = FALSE) [1] "1000" "1000" "100" "100"
I have two data sets: str(a) 'data.frame': 525930 obs. of 3 variables: $ reg_code : int 11542359 10077860 10050401 10988998 11465162 10933454 11170863 11291673 12086780 10248250 ... $ begin_date: Date, format: "2008-10-01" "1994-06-01" ... $ pair_id : chr "115423591" "100778601" "10...
($|\\s+)
nondist[ dist ]