Spotfire® Enterprise Runtime for R

Character Data ("String") Operations

These are the available functions for string operations.See each function's help topic in the TERR Language Reference for more information.

Function name Title description
agrep Approximate String Matching (Fuzzy Matching)
agrepl Approximate String Matching (Fuzzy Matching)
as.character Character Objects
as.character.factor Character Objects
basename Manipulate File Paths
casefold Convert Case of Character Strings
char.expand Expand a String with Respect to a Target Table
character Character Objects
charmatch Partial Matching of Character Strings
dirname Manipulate File Paths
Encoding String Encodings of a Character Vector
Encoding<- String Encodings of a Character Vector
endsWith Match Patterns with Strings
format Formatted Character Data
formatC Formatting Using C-style Formats
format.data.frame Formatted Character Data
format.default Formatted Character Data
format.factor Formatted Character Data
gettext Translate Text Messages
gettextf Generate C-Style Formatted Output
gregexpr Match Patterns in Strings
grep Search for a Pattern in Text
grepl Search for a Pattern in Text
grepRaw Search for Pattern in Text
gsub Replace Part of a Character String
iconv Convert Character Vector between Encodings
iconvlist Convert Character Vector between Encodings
inverse.rle Run Length Encoding and Decoding
is.character Character Objects
make.unique Make Character Strings Unique
match Match Items against a Table
nchar Lengths of Character Strings
ngettext Translate Text Messages
nzchar Lengths of Character Strings
paste Concatenate Data to Make Character Data
pmatch Partial Matching of Character Items in a Vector
prettyNum Formatting Using C-style Formats
print.rle Run Length Encoding and Decoding
regexec Search for a Pattern in Text
regexpr Match Patterns in Strings
regmatches Extract or Replace Matched Substrings
regmatches<- Extract or Replace Matched Substrings
rle Run Length Encoding and Decoding
sort Sort into Numeric or Alphabetic Order
sort.default Sort into Numeric or Alphabetic Order
sort.int Sort into Numeric or Alphabetic Order
sort.POSIXlt Sort into Numeric or Alphabetic Order
sprintf Generate C-Style Formatted Output
startsWith Match Patterns with Strings
strrep Replace Strings with Repeated Versions
strsplit Split the Elements of a Character Vector
sub Replace Part of a Character String
substr Extract or Replace Portions of Character Strings
substr<- Extract or Replace Portions of Character Strings
substring Extract or Replace Portions of Character Strings
substring<- Extract or Replace Portions of Character Strings
symnum Symbolic Number Coding
tempdir Create Unique Names for Files
tempfile Create Unique Names for Files
tolower Convert Case of Character Strings
toTitleCase Convert Case of Character Strings
toupper Convert Case of Character Strings
trimws Remove leading or trailing white space