composeObjAcc: Compose dbGaP object accession

Description Usage Arguments Value Methods (by class) Examples

Description

The method composes the study, dataset, variable accession from the given object id and version. If object version is not provided, it returns the object accession without version.

Usage

1
2
3
4
composeObjAcc(object, objId, type, ...)

## S4 method for signature 'Commons'
composeObjAcc(object, objId, type, ..., objVer = NULL)

Arguments

object

Commons class object.

objId

an integer. A dbGaP object id.

type

an integer. The type of object, such as 'study', 'dataset', or 'variable'.

...

There are optional arguments.

objVer

an integer. (optional) The object version.

Value

a character string. The object accession with or without version.

Methods (by class)

Examples

1
2
3
4
5
6
## Not run: 

c <- Commons()
composeObjAcc(c, objId = 1255, type = 'study', objVer = 1)

## End(Not run)

jameslhao/dbgapr_dev documentation built on May 8, 2019, 11:03 p.m.