getTags.GenericDataFile {R.filesets}R Documentation

Gets the tags of the file

Description

Gets the tags of the file.

Usage

## S3 method for class 'GenericDataFile':
getTags(this, pattern=NULL, collapse=NULL, ...)

Arguments

pattern An optional regular expression used to filter out tags. If NULL, all tags are returned.
collapse A character string used to concatenate the tags. If NULL, the tags are not concatenated.
... Not used.

Details

The tags of a filename are the comma separated parts of the filename that follows the the first comma, if any, and that preceeds the last period (the filename extension). For instance, the tags of path/to/foo,a.2,b.ext are a.2 and b.

Value

Returns a character vector or NULL.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*getName(). For more information see GenericDataFile.


[Package R.filesets version 0.5.3 Index]