Learn R Programming

via (version 0.2.0)

colnames,VirtualArray-method: Column names of two-dimensional 'VirtualArray'-derived class object.

Description

Get or set the column names of two-dimensional 'VirtualArray'-derived class objects

Usage

# S4 method for VirtualArray
colnames(x)

# S4 method for VirtualArray colnames(x) <- value

Value

A character vector of column names or NULL.

Arguments

x

VirtualArray-derived class object.

value

character vector.

Examples

Run this code
data(paleocoastlines)
colnames(paleocoastlines)
colnames(paleocoastlines) <- c("a", "b")

Run the code above in your browser using DataLab