stripColNameAcc: (internal) Remove accession from concatenated string of...

Description Usage Arguments Value Methods (by class) Examples

Description

The method takes a list of concatenated string of variable name and accession, removes the variable accession from each of the string (e.g. AGEPHOT_phv00000027.v2 –> AGEPHOT). After the removal, if there are duplicated items in the list, a .number is appended to each of the repeated items to make the ditinction. For example, the duplicated items LNUCSCORE_phv00053747.v2, LNUCSCORE_phv00000006.v2 become LNUCSCORE.1, LNUCSCORE.2 .

Usage

1
2
3
4
stripColNameAcc(object, colNameAccList)

## S4 method for signature 'Commons,character'
stripColNameAcc(object, colNameAccList)

Arguments

object

Commons class object.

colNameAccList

a character vector. A concatenated string of the variable name and accession, such as c('AGEPHOT_phv00000027.v2', 'LNUCSCORE_phv00053747.v2', 'LNUCSCORE_phv00000006.v2', 'DIABAGE_phv00054122.v1').

Value

a character vector. Variable names with the accessions removed.

Methods (by class)

Examples

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

c <- Commons()
names <- c('AGEPHOT_phv00000027.v2', 'LNUCSCORE_phv00053747.v2')
stripColNameAcc(c, colNameAccList =  names)) 

## End(Not run)

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