Learn R Programming

R.filesets (version 2.15.1)

extract.GenericDataFileSet: Extract a subset of the file set

Description

Extract a subset of the file set.

Usage

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

Value

Returns a GenericDataFileSet with zero of more

GenericDataFile:s.

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.

Author

Henrik Bengtsson

See Also

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