getMetaByObjAcc: Get metadta of a dbGaP object

Description Usage Arguments Value Methods (by class) Examples

Description

The method returns the metadat a given dataset or variable accession.

Usage

1
2
3
4
getMetaByObjAcc(object, acc, type)

## S4 method for signature 'Commons'
getMetaByObjAcc(object, acc, type)

Arguments

object

Commons class object.

acc

a character string. The dbGaP dataset, or variable accession.

a

character string. The type of the input accession that can be either 'dataseet' or 'variable'.

Value

a data frame. The metadata of the input object.

Methods (by class)

Examples

1
2
3
4
5
6
7
8
## Not run: 

c <- Commons()
df <- getMetaByObjAcc(c, acc = 'pht000824.v5', type = 'dataset')
# or
df <- getMetaByObjAcc(c, acc = 'phv00000090.v2', type = 'variable')

## End(Not run)

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