Retrieval of file names according to their codings.

Description

To retrieve file names according to their codings.

Usage

1

Arguments

or

integer vector of code id.

and

integer vector of code id.

not

integer vector of code id.

names

logical, returns file names when TRUE.

Details

Let fid.or are files coded by any code from or, fid.and are files coded by all codes of and, and fid.not are files not coded by any code of not. Then the result is setdiff(intersect(fid.or, fid.and), fid.not).

This function is succeeded by filesCodedByAnd, filesCodedByOr, filesCodedByNot and their operators.

Value

A vector of file id when names is FALSE. A vector of file names, with the side effect of updating files widget with these file names when names is TRUE.

Author(s)

HUANG Ronggui

Examples

1
2
3
4
5
6
## Not run: 
QueryFile(or=1:2) ## files coded to code 1 or 2.
QueryFile(and=1:2) ## files coded to code 1 and 2.
QueryFile(or=1:2, not=3:4) ## files coded to code 1 or 2 but neither 3 nor 4.

## End(Not run)