renameColDataColumns {PDATK}R Documentation

Rename the columns in the colData slot, or do nothing if they don't match

Description

Rename the columns in the colData slot, or do nothing if they don't match

Usage

renameColDataColumns(x, values)

Arguments

x

An S4 object with a colData method.

values

A character vector where names are the existing column names and values are the new column names.

Value

x with updated column names, if they match any existing columns.

Examples

data(sampleICGCmicro)
renameColDataColumns(sampleICGCmicro, c(event_occurred='days_survived'))


[Package PDATK version 1.0.2 Index]