getFiles: Get the ids or names of files list

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Get the ids or names of files list.

Usage

1
2
3
4
5
6
7
getFileIds(condition = c("unconditional", "case", "filecategory","both"), 
          type = c("all", "coded", "uncoded","selected"))

getFileNames(fid = GetFileId())

getFiles(condition = c("unconditional", "case", "filecategory", "both"),
         type = c("all", "coded", "uncoded", "selected"), names = TRUE) 

Arguments

condition

Any one of "unconditional", "case", "filecategory" or "both".

type

Any one of "all", "coded" or "uncoded","selected".

fid

integer vector, the id of files.

names

logical.

Details

The imported files are stored in a data base table (called source) in the *.rqda file. Every file in the source table has a unique id. Besides, every file can be assigned to a case or file category.

Given that files meet the condition, the type argument "all" means all files, "coded" means the coded files, "uncoded" means the uncoded files and "selected" means the selected files; in "files" widget, "files of case" widget and "files of category" widget respectively.

When condition is "both", the result is intersection of File Id of "case" and "filecategory".

GetFileId returns the id of files which fit the combined criterion of condition and type.

Value

Normally, it is a numeric vector of file id. If condition is "case" or "filecategory" but no case or file category is selected, it retuns NULL.

getFiles returns a vector of file IDs (with class of "RQDA.vector" and "fileId") when names is FALSE, and a vector of file names ((with class of "RQDA.vector" and "fileName") when names is TRUE.

Author(s)

HUANG Ronggui

See Also

retrieval, getFileIdSets

Examples

1
2
3
4
5
6
7
## Not run: 
GetFileId() ## Id of all files
GetFileId("unconditional","coded") ## id of all coded files.
GetFileId("case","uncoded") ## id of uncoded files for the selected case.
GetFileId("filecategory","all") ## id of all files in the selected file category.

## End(Not run)

RQDA documentation built on May 2, 2019, 5 p.m.