getCases: Get the Case ID and Case Name.

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

View source: R/utils.R

Description

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

Usage

1
2
3
4
5
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.

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.

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.

Author(s)

HUANG Ronggui

See Also

See Also getFileIds

Examples

1
2
3
4
## Not run: 
GetCaseName(GetCaseId(GetFileId("filecategory")))

## End(Not run)

RQDA documentation built on May 2, 2019, 3:24 p.m.