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 hashtags that are in it. Optionally, you can decide whether to remove the data hashtags or not.
1 2 3 | FindHashtagPipe$new(propertyName = "hashtag",
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 regular expression indicated in the hashtagPattern
variable is used to identify hashtags.
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 hashtags.
Usage
pipe(instance, removeHashtag = TRUE)
Value
The instance with the modifications that have occurred in the pipe.
Arguments
instance (Instance) Instance to preproccess.
removeHashtag (logical) Indicates if the hashstags are replaced.
findHashtag Function that find the hashtags in the data.
Usage
findHashtag(data)
Value
List with hashtags found.
Arguments
data (character) Text in which the hashtags are searched.
removeHashtag Function that removes the hashtags in the data.
Usage
removeHashtag(data)
Value
The data with hashtags removed.
Arguments
data (character) Text in which hashtags will be removed.
hashtagPattern (character) Regular expression to detect hashtags.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.