powered by
Extends strsplit by trimming and unlisting string
TrimSplit( x, sep = ",", fixed = FALSE, perl = FALSE, useBytes = FALSE, rm.empty = TRUE )
string
symbol to separate data (e.g., comma-delimited), Default: ','
logical, if TRUE match split exactly, otherwise use regular expressions. Has priority over perl, Default: FALSE
logical, indicating whether or not to use Perl-compatible regexps, Default: FALSE
logical, if TRUE the matching is done byte-by-byte rather than character-by-character, Default: FALSE
logical. indicating whether or not to remove empty elements, Default: TRUE
strsplit
# NOT RUN { TrimSplit("Data 1, Data2, Data3") # [1] "Data 1" "Data2" "Data3" # }
Run the code above in your browser using DataLab