Learn R Programming

RQDA (version 0.3-0)

getCases: Get the Case ID and Case Name.

Description

Return cases IDs or names which a set of files belong to.

Usage

getCaseIds(fid = GetFileId(), nFiles = FALSE)

getCaseNames(caseId = GetCaseId(nFiles = FALSE))

getCases(fid, names = TRUE)

Arguments

fid

numeric vector, the file IDs.

nFiles

logical, return the number of files that belong to a case.

caseId

numeric vector, the case IDs.

names

logical.

Value

GetCaseId returns a data frame of two columns when nFiles is TRUE, and a numeric vector when FALSE.

GetCaseName returns a character vector or NULL if no cases are associated with the file IDs.

getNames returns the names of cases when names is TRUE, id of files when FALSE.

Details

GetCaseId returns the case IDs which a file belongs to given the file IDs.

GetCaseName returns the case Names given the case IDs.

getCases returns the case Names or IDs depending on the argument of names. It is a wrapper of GetCaseId and GetCaseName.

See Also

See Also getFileIds

Examples

Run this code
# NOT RUN {
GetCaseName(GetCaseId(GetFileId("filecategory")))
# }

Run the code above in your browser using DataLab