Description Usage Arguments Format Details Inherit Methods See Also
This class allows you to preprocess the data of an instance to find the emojis that are in it. Optionally, you can decide whether to replace the data emojis or not.
1 2 3 | FindEmojiPipe$new(propertyName = "Emojis",
alwaysBeforeDeps = list(),
notAfterDeps = list())
|
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 emoji list that is used is the one provided by the variable
emojis
of the rtweet package.
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/replace the abbreviations.
Usage
pipe(instance, replaceEmoji = TRUE)
Value
The instance with the modifications that have occurred in the pipe.
Arguments
instance (Instance) Instance to preproccess.
replaceEmoji (logical) Indicate if the emojis are replaced.
findEmoji Function that checks if the emoji is in the data.
Usage
findEmoji(data, emoji)
Value
TRUE or FALSE depending on whether the emoji is on the data.
Arguments
data (character) Text in which the emoji is searched.
emoji (character) Indicates the emoji to find.
replaceEmoji Function that replaces the emoji in the data for the extendedEmoji.
Usage
replaceEmoji(emoji, extendedEmoji, data)
Value
The data with emoji replaced.
Arguments
emoji (character) Indicates the emoji to remove.
extendedEmoji (character) Indicates the string to replace for the emoji found.
data (character) Text in which emojis will be replaced.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.