renameColumns {TPP2D} | R Documentation

## Rename columns of imported data frame

### Description

Rename columns of imported data frame

### Usage

    renameColumns(dataLong, idVar, geneNameVar)

### Arguments

`dataLong` | long format data frame of imported dataset
`idVar` | character string indicating which data column provides the unique identifiers for each protein.
`geneNameVar` | character string of the column name that describes the gene name of a given protein in the raw data files

### Value

data frame containing imported data with renamed columns

### Examples

    data("config_tab")
    data("raw_dat_list")

    dataList <- import2dMain(configTable = config_tab,
                             data = raw_dat_list,
                             idVar = "protein_id",
                             fcStr = "rel_fc_",
                             addCol = "gene_name",
                             naStrs = NA,
                             intensityStr = "signal_sum_",
                             nonZeroCols = "qusm",
                             qualColName = "qupm")
    configLong <- configWide2Long(configWide = config_tab)
    annoDat <- annotateDataList(dataList = dataList,
                                geneNameVar = "gene_name",
                                configLong = configLong,
                                intensityStr = "signal_sum_",
                                fcStr = "rel_fc_")
    renameColumns(annoDat,
                  idVar = "protein_id",
                  geneNameVar = "gene_name")

[Package TPP2D version 1.8.0 Index]