Make it easier to work with strings.


[Up] [Top]

Documentation for package ‘stringr’ version 0.3

Help Pages

fixed Escape all special regular expression characters.
invert_match Invert a matrix of locations...
str_c Join multiple strings into a single string.
str_detect Detect the presence or absence of a pattern in a string.
str_dup Duplicate and concatenate strings within a character vector.
str_extract Extract first piece of a string that matches a pattern.
str_extract_all Extract all pieces of a string that match a pattern.
str_join Join multiple strings into a single string.
str_length The length of a string (in characters).
str_locate Locate the position of the first occurence of a pattern in a string.
str_locate_all Locate the position of all occurences of a pattern in a string.
str_match Extract first matched group from a string.
str_match_all Extract all matched groups from a string.
str_pad Pad a string.
str_replace Replace replaced occurences of a matched pattern in a string.
str_split Split up a string into a variable number of pieces.
str_split_fixed Split up a string into a fixed number of pieces.
str_sub Extract substrings from a character vector.
str_trim Trim whitespace from start and end of string.