TargetAssigningPipe | R Documentation |
This class allows searching in the path the target of
the Instance
.
The targets that are searched can be controlled through the constructor of the class where targetsName will be the string that is searched within the path and targets has the values that the property can take.
This class inherits from GenericPipe
and implements the
pipe
abstract function.
bdpar::GenericPipe
-> TargetAssigningPipe
new()
Creates a TargetAssigningPipe
object.
TargetAssigningPipe$new( targets = list("ham", "spam"), targetsName = list("_ham_", "_spam_"), propertyName = "target", alwaysBeforeDeps = list(), notAfterDeps = list() )
targets
A list
value. Name of the targets property.
targetsName
A list
value. The name of folders.
propertyName
A character
value. Name of the property
associated with the GenericPipe
.
alwaysBeforeDeps
A list
value. The dependencies
alwaysBefore (GenericPipes
that must be executed before
this one).
notAfterDeps
A list
value. The dependencies
notAfter (GenericPipes
that cannot be executed after
this one).
pipe()
Preprocesses the Instance
to obtain the
target.
TargetAssigningPipe$pipe(instance)
instance
A Instance
value. The Instance
to preprocess.
The Instance
with the modifications that have
occurred in the pipe.
getTarget()
Gets the target from a path.
TargetAssigningPipe$getTarget(path)
path
A character
value. The path to analyze.
The target of the path.
checkTarget()
Checks if the target is in the path.
TargetAssigningPipe$checkTarget(target, path)
target
A character
value. The target to find in the
path.
path
A character
value. The path to analize.
if the target is found, returns target, else returns "".
getTargets()
Gets of targets.
TargetAssigningPipe$getTargets()
Value of targets.
clone()
The objects of this class are cloneable with this method.
TargetAssigningPipe$clone(deep = FALSE)
deep
Whether to make a deep clone.
AbbreviationPipe
, ContractionPipe
,
File2Pipe
, FindEmojiPipe
,
FindEmoticonPipe
, FindHashtagPipe
,
FindUrlPipe
, FindUserNamePipe
,
GuessDatePipe
, GuessLanguagePipe
,
Instance
, InterjectionPipe
,
MeasureLengthPipe
, GenericPipe
,
ResourceHandler
, SlangPipe
,
StopWordPipe
, StoreFileExtPipe
,
TeeCSVPipe
, ToLowerCasePipe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.