Learn R Programming

icd (version 3.3)

strip: Strip character(s) from character vector

Description

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.

Usage

strip(x, pattern = " ", use_bytes = TRUE)

Arguments

x

character vector

pattern

passed to gsub default is " "

use_bytes

single logical passed to base::gsub, default is the slightly quicker TRUE

Value

character vector of same length as input