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