queryFiles.Rd
To retrieve file names according to their codings.
queryFiles(or=NULL, and = NULL, not = NULL, names = TRUE)
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. |
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.
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.
HUANG Ronggui
if (FALSE) { queryFiles(or=1:2) ## files coded to code 1 or 2. queryFiles(and=1:2) ## files coded to code 1 and 2. queryFiles(or=1:2, not=3:4) ## files coded to code 1 or 2 but neither 3 nor 4. }