Learn R Programming

bdpar (version 3.1.0)

StoreFileExtPipe: Class to get the file's extension field of an Instance

Description

Gets the extension of a file. Creates the extension property which indicates extension of the file.

Arguments

Inherit

This class inherits from GenericPipe and implements the pipe abstract function.

Super class

bdpar::GenericPipe -> StoreFileExtPipe

Methods

Inherited methods


Method new()

Creates a StoreFileExtPipe object.

Usage

StoreFileExtPipe$new(
  propertyName = "extension",
  alwaysBeforeDeps = list(),
  notAfterDeps = list()
)

Arguments

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).


Method pipe()

Preprocesses the Instance to obtain the extension of Instance.

Usage

StoreFileExtPipe$pipe(instance)

Arguments

instance

A Instance value. The Instance to preprocess.

Returns

The Instance with the modifications that have occurred in the pipe.


Method obtainExtension()

Gets of extension of the path.

Usage

StoreFileExtPipe$obtainExtension(path)

Arguments

path

A character value. The path of the file to get the extension.

Returns

Extension of the path.


Method clone()

The objects of this class are cloneable with this method.

Usage

StoreFileExtPipe$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

AbbreviationPipe, ContractionPipe, File2Pipe, FindEmojiPipe, FindEmoticonPipe, FindHashtagPipe, FindUrlPipe, FindUserNamePipe, GuessDatePipe, GuessLanguagePipe, Instance, InterjectionPipe, MeasureLengthPipe, GenericPipe, ResourceHandler, SlangPipe, StopWordPipe, TargetAssigningPipe, TeeCSVPipe, ToLowerCasePipe