Description Usage Arguments Format Details Inherit Methods Public fields Private fields See Also
This class allows you to preprocess the data of an instance to find the urls that are in it. Optionally, you can decide whether to remove the data urls or not.
1 2 3 | FindUrlPipe$new(propertyName = "URLs",
alwaysBeforeDeps = list(),
notAfterDeps = list("FindUrlPipe"))
|
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 URLPatterns
variable are used to identify urls.
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 users.
Usage
pipe(instance,
removeUrl = TRUE,
URLPatterns = list(self$URLPattern, self$EmailPattern),
namesURLPatterns = list("UrlPattern","EmailPattern"))
Value
The instance with the modifications that have occurred in the pipe.
Arguments
instance (Instance) Instance to preproccess.
removeUrl (logical) Indicates if the urls are removed.
URLPatterns (list) The regex to find urls.
namesURLPatterns (list) The names of regex.
findUrl Function that find the urls in the data.
Usage
findHashtag(pattern, data)
Value
List with urls found.
Arguments
pattern (character) Regex to find urls.
data (character) Text to find urls.
removeUrl Function that removes the urls in the data.
Usage
removeUrl(pattern, data)
Value
The data with urls removed.
Arguments
pattern (character) Regex to find urls.
data (character) Text in which hashtags will be urls.
putNamesURLPattern Set the names to url patterns result.
Usage
putNamesURLPattern(resultOfURLPatterns)
Value
Value of resultOfURLPatterns variable with the names of url pattern.
Arguments
resultOfURLPatterns (list) List with urls found.
getURLPatterns Getter of url patterns.
Usage
getURLPatterns()
Value
Value of url patterns.
getNamesURLPatterns Getter of name of urls.
Usage
getNamesURLPatterns()
Value
Value of name of urls.
URLPattern (character) Regular expression to detect urls.
EmailPattern (character) Regular expression to detect emails.
URLPatterns (list) Regular expressions used to detect urls.
namesURLPatterns (list) Names of regular expressions that are used to identify urls.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.