detectVariableDataType: (internal, deprecated) Detect variable data type

Description Usage Arguments Value Methods (by class)

Description

The method determines the data type of a given variable by looking into the data values. The funciont is called through dataDicXmlParser. Running this method is resource expensive.

Usage

1
2
3
4
5
detectVariableDataType(object, phsAcc, phtAcc, phvAcc, varName, ...)

## S4 method for signature 'Commons,character'
detectVariableDataType(object, phsAcc, phtAcc,
  phvAcc, varName, ..., codeValCombo = NA, fileInfoDF = data.frame())

Arguments

object

Commons class object.

phsAcc

a character string. The dbGaP study accession of the given variable.

phtAcc

a character string. The dbGaP dataset accession of the given variable.

phvAcc

a character string. The dbGaP phenotype variable accession.

varName

a character string. The dbGaP phenotype variable name.

...

There are optional arguments.

codeValCombo

a character string. The combo string of a categorical variable value code and the respective code meaning.

fileInfoDF

a data frame. The file info data.

Value

a character string. The data types of the input variable accession.

Methods (by class)


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