Learn R Programming

RQDA (version 0.3-0)

queryFiles: Retrieval of file names according to their codings.

Description

To retrieve file names according to their codings.

Usage

queryFiles(or=NULL, and = NULL, not = NULL, names = TRUE)

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.

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.

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.

Examples

Run this code
# 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.
# }

Run the code above in your browser using DataLab