gsub
is probably quicker than stringr
/stringi
. For
comorbidity processing, this package prefers the faster base
functions, whereas stringr
is used for tasks which are not time
critical, e.g. parsing source data to be included in the distributed
icd
package.
strip(x, pattern = " ", use_bytes = TRUE)
character vector
passed to gsub
default is " "
single logical passed to base::gsub
, default is the
slightly quicker TRUE
character vector of same length as input