Gets the tags.
# S3 method for FullNameInterface
getTags(this, pattern=NULL, collapse=NULL, ..., named=FALSE, na.rm=TRUE,
useCustomTags=TRUE)
Returns a character
An optional regular expression used to filter out tags.
If NULL
, all tags are returned.
A character
string used to concatenate the tags.
If NULL
, the tags are not concatenated.
Additional arguments passed to *getFullName()
.
If TRUE
, tags of format "<name>=<value>" will be parsed
as named "<value>" tags, e.g. "foo,n=23,bar,n=42"
is
parsed to c("foo", "n"="23", "bar", "n"="42")
.
Note that if collapse
is FALSE
, the names will be dropped.
If TRUE
and the fullname is NA
, then NULL
is returned,
otherwise (character) NA
is returned.
If TRUE
, custom tags are used, otherwise not.
Henrik Bengtsson
The tags of a fullname are the comma separated parts of the
fullname that follows the the first comma, if any.
For instance, the tags of foo,a.2,b
are a.2
and b
.
Any custom tag that equals "*"
is replaced by the comma separated
tags from the fullname.
*getFullName()
.
*getName()
.
For more information see FullNameInterface
.