Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extract.GenericDataFileSet

Extract a subset of the file set


Description

Extract a subset of the file set.

Usage

## S3 method for class 'GenericDataFileSet'
extract(this, files, ..., onMissing=c("NA", "error", "drop", "dropall"),
  onDuplicates=c("ignore", "drop", "error"))

Arguments

files

An integer or a logical vector indicating which data files to be extracted. Negative indices are excluded.

...

Not used.

onMissing

A character specifying the action if a requested file does not exist. If "error", an error is thrown. If "NA", a GenericDataFile referring to an NA pathname is used in place. If "drop", the missing file is dropped. If "dropall", an empty data set is return if one or more missing files are requested.

Value

Returns a GenericDataFileSet with zero of more GenericDataFile:s.

Author(s)

Henrik Bengtsson

See Also

na.omit for dropping missing files from a fileset. For more information see GenericDataFileSet.


R.filesets

Easy Handling of and Access to Files Organized in Structured Directories

v2.14.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.