Description Usage Arguments Format Details Inherit Methods Public fields See Also
This class allows you to preprocess the data of an instance to find the emoticons that are in it. Optionally, you can decide whether to remove the data emoticons or not.
1 2 3 | FindEmoticonPipe$new(propertyName = "Emoticon",
alwaysBeforeDeps = list(),
notAfterDeps = list("FindHashtagPipe"))
|
propertyName |
(character) Name of the property associated with the pipe. |
alwaysBeforeDeps |
(list) The dependences alwaysBefore (pipes that must be executed before this one). |
notAfterDeps |
(list) The dependences notAfter (pipes that cannot be executed after this one). |
An object of class R6ClassGenerator
of length 24.
The regular expression indicated in the emoticonPattern
variable is used to identify emoticons.
The pipe will invalidate the instance in the moment that the resulting data is empty.
This class inherits from PipeGeneric
and implements the
pipe
abstract function.
pipe Function that preprocesses the instance to obtain/remove the emoticons.
Usage
pipe(instance, removeEmoticon = TRUE)
Value
The instance with the modifications that have occurred in the pipe.
Arguments
instance (Instance) Instance to preproccess.
removeEmoticon (logical) Indicates if the emoticons are replaced.
findEmoticon Function that find the emoticons in the data.
Usage
findEmoticon(data)
Value
List with emoticons found.
Arguments
data (character) Text in which the emoticons are searched.
removeEmoticon Function that removes the emoticons in the data.
Usage
removeEmoticon(data)
Value
The data with emoticons removed.
Arguments
data (character) Text in which emoticons will be removed.
emoticonPattern (character) Regular expression to detect emoticons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.