logical. If TRUE removes leading and trailing white
spaces.
clean
trim logical. If TRUE extra white spaces and escaped
character will be removed.
pattern
A character string containing a regular expression (or
character string for fixed = TRUE) to be matched in the given
character vector. Default, @rm_emoticon uses the
rm_emoticon regex from the regular expression dictionary from
the dictionary argument.
replacement
Replacement for matched pattern.
extract
logical. If TRUE the emoticons are extracted into a
list of vectors.
dictionary
A dictionary of canned regular expressions to search within
if pattern begins with "@rm_".
# NOT RUN {x <- c("are :-)) it 8-D he XD on =-D they :D of :-) is :> for :o) that :-/",
"as :-D I xD with :^) a =D to =) the 8D and :3 in =3 you 8) his B^D was")
rm_emoticon(x)
ex_emoticon(x)
# }