Learn R Programming

R.filesets (version 2.15.1)

Easy Handling of and Access to Files Organized in Structured Directories

Description

A file set refers to a set of files located in one or more directories on the file system. This package provides classes and methods to locate, setup, subset, navigate and iterate such sets. The API is designed such that these classes can be extended via inheritance to provide a richer API for special file formats. Moreover, a specific name format is defined such that filenames and directories can be considered to have full names which consists of a name followed by comma-separated tags. This adds additional flexibility to identify file sets and individual files. NOTE: This package's API should be considered to be in an beta stage. Its main purpose is currently to support the aroma.* packages, where it is one of the main core components; if you decide to build on top of this package, please contact the author first.

Copy Link

Version

Install

install.packages('R.filesets')

Monthly Downloads

798

Version

2.15.1

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Last Published

January 24th, 2024

Functions in R.filesets (2.15.1)

FullNameInterface

The FullNameInterface class interface
GenericTabularFile

The abstract GenericTabularFile class
GenericTabularFileSet

The GenericTabularFileSet class
GenericDataFileSetList

The GenericDataFileSetList class
ColumnNamesInterface

The ColumnNamesInterface class interface
GenericDataFileSet

The GenericDataFileSet class
ChecksumFile

The ChecksumFile class
ChecksumFileSet

The ChecksumFileSet class
GenericDataFile

The abstract GenericDataFile class
Deprecated and defunct objects

Deprecated and defunct objects
Non-documented objects

Non-documented objects
RDataFileSet

The RDataFileSet class
RDataFile

The RDataFile class
R.filesets-package

Package R.filesets
append.GenericDataFileSet

Appends one data set to an existing one
anyNA.GenericDataFileSet

Checks whether any of the pathnames are missing
TabularTextFile

The TabularTextFile class
RdsFile

The RdsFile class
RdsFileSet

The RdsFileSet class
appendFiles.GenericDataFileSet

Appends a list of files to a data set
TabularTextFileSet

The TabularTextFileSet class
as.character.GenericDataFileSet

Returns a short string describing the file set
extractMatrix.GenericTabularFile

Reads one of the columns
GenericDataFileSet$byName

Locates and sets up a file set by its name
as.list.GenericDataFileSet

Returns the files of the file set
extract.GenericDataFileSet

Extract a subset of the file set
getFile.GenericDataFileSet

Get a particular file of the file set
getChecksum.GenericDataFile

Gets the checksum of a file
compareChecksum.GenericDataFile

Compares the file checksum with the value of the checksum file
as.character.GenericDataFile

Returns a short string describing the file
GenericDataFileSet$byPath

Defines a GenericDataFileSet by searching for files in a directory
getChecksumObjects.GenericDataFileSet

Retrieves objects that uniquely identifying the data set
getColumnNames.ColumnNamesInterface

Gets the column names
getDefaultFullName.GenericDataFile

Gets the full name of the file
getDefaultFullName.GenericDataFileSet

Gets the default full name of the file set
getChecksum.GenericDataFileSet

Generates a deterministic checksum for an R object
getDefaultColumnNames.TabularTextFile

Gets the default column names
getLastModifiedOn.GenericDataFile

Gets when the file was last modified
copyTo.GenericDataFileSet

Copies a data set to another directory
getDefaultFullName.FullNameInterface

Gets the default full name
dim.GenericTabularFile

Gets the dimension of data table
copyTo.GenericDataFile

Safely copies a file to a new pathname
getName.FullNameInterface

Gets the name
getTags.FullNameInterface

Gets the tags
readDataFrame

Reads data from a tabular file
GenericDataFileSet$findByName

Locates all file sets that match the requested name
getFileSize.GenericDataFile

Gets the size of a file
getExtension.GenericDataFile

Gets the filename extension
gzip.GenericDataFile

Compresses/uncompresses a file
getFileType.GenericDataFile

Gets the file type of a file
getLastAccessedOn.GenericDataFile

Gets when the file was last accessed
loadRDS

Reads data from a RDS file
loadToEnv

Reads data from a RDS file
GenericDataFile$fromFile

Defines a GenericDataFile from a pathname
dsApplyInPairs.GenericDataFileSet

Applies a function to each pair of file in two file sets
readColumns.GenericTabularFile

Reads a subset of the columns as a data frame
equals.GenericDataFile

Checks if a file equals another
getNames.GenericDataFileSet

Gets the names (or fullnames) of the files in the file set
gzip.GenericDataFileSet

Compresses/uncompresses a set of files
getHeader.TabularTextFile

Gets the file header
indexOf.GenericDataFileSet

Finds indices of a subset of files
readDataFrame.GenericTabularFile

Reads the tabular data as a data frame
getCreatedOn.GenericDataFile

Gets when the file was created
getPath.GenericDataFile

Gets the path (directory) of the file
getPath.GenericDataFileSet

Gets the path (directory) of the file set
hasColumnHeader.TabularTextFile

Checks if there are column names in the header
hasBeenModified.GenericDataFile

Checks whether the file has been modified
linkTo.GenericDataFile

Creates a symbolic file link
validate.GenericDataFileSet

Validates all files in the data set
hasTags.FullNameInterface

Checks whether the fullname contains a given set of tag(s)
getDefaultColumnNames.ColumnNamesInterface

Gets the default column names
isFile.GenericDataFile

Checks if this is an existing file
readChecksum.ChecksumFile

Reads the checksum value
readChecksum.GenericDataFile

Reads the value of the corresponding checksum file
getPathname.GenericDataFile

Gets the pathname of the file
getFilename.GenericDataFile

Gets the filename of the file
nbrOfRows.GenericTabularFile

Gets the number of data rows
getPathnames.GenericDataFileSet

Gets the pathnames of the files in the file set
nbrOfColumns.ColumnNamesInterface

Gets the number of columns
nbrOfLines.TabularTextFile

Counts the number of lines in the data file
nbrOfRows.TabularTextFile

Counts the number of data rows
validate.ChecksumFile

Asserts that the checksum matches the checksum of file
Arguments$getTags

Gets and validates tags
setFullName.FullNameInterface

Sets the full name
validate.GenericDataFile

Validates the content of a file
getFullName.FullNameInterface

Gets the full name
renameTo.GenericDataFile

Renames/moves a file
setName.FullNameInterface

Sets the name part of the fullname
readDataFrame.TabularTextFileSet

Reads the tabular data from all files as data frames
length.GenericDataFileSet

Gets the number of files in the set
readDataFrame.TabularTextFile

Reads the tabular data as a data frame
writeChecksum.GenericDataFile

Write the file checksum to a checksum file
readLines.TabularTextFile

Reads the lines of the data file as strings
writeColumnsToFiles.GenericTabularFile

Read each column from a data file and exports it to a separate file
setColumnNames.ColumnNamesInterface

Sets the column names
validateChecksum.GenericDataFile

Asserts that the file checksum matches the one of the checksum file
setTags.FullNameInterface

Sets the tags
sortBy.GenericDataFileSet

Sorts the set