The GenericDataFileSetList class

Share:

Description

Package: R.filesets
Class GenericDataFileSetList

Object
~~|
~~+--FullNameInterface
~~~~~~~|
~~~~~~~+--GenericDataFileSetList

Directly known subclasses:

public static class GenericDataFileSetList
extends FullNameInterface

A GenericDataFileSetList object represents a list of GenericDataFileSets.

Usage

1
2
GenericDataFileSetList(dsList=list(), tags="*", ..., allowDuplicates=TRUE,
  .setClass="GenericDataFileSet")

Arguments

dsList

A single or a list of GenericDataFileSet:s.

tags

A character vector of tags.

...

Not used.

allowDuplicates

If FALSE, files with duplicated names are not allowed and an exception is thrown, otherwise not.

.setClass

A character string specifying a name of the class that each data set must be an instance of.

Fields and Methods

Methods:

as -
as.GenericDataFileSetList -
as.list -
getFileList -
getFullNames -
getNames -
getSet -
getSets -
indexOf -
length -
nbrOfSets -

Methods inherited from FullNameInterface:
appendFullNameTranslator, appendFullNameTranslatorByNULL, appendFullNameTranslatorByTabularTextFile, appendFullNameTranslatorByTabularTextFileSet, appendFullNameTranslatorBycharacter, appendFullNameTranslatorBydata.frame, appendFullNameTranslatorByfunction, appendFullNameTranslatorBylist, clearFullNameTranslator, clearListOfFullNameTranslators, getDefaultFullName, getFullName, getFullNameTranslator, getListOfFullNameTranslators, getName, getTags, hasTag, hasTags, resetFullName, setFullName, setFullNameTranslator, setListOfFullNameTranslators, setName, setTags, updateFullName

Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, save

Author(s)

Henrik Bengtsson

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Setup a file set
path1 <- system.file(package="R.filesets")
ds1 <- GenericDataFileSet$byPath(path1)

path2 <- system.file(package="R.utils")
ds2 <- GenericDataFileSet$byPath(path2)

dsl <- GenericDataFileSetList(list(ds1, ds2), tags=c("*", "CustomTag"))
print(dsl)

df <- as.data.frame(dsl)
print(df)

print(df["DESCRIPTION","R.filesets"])

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.