Learn R Programming

erpR (version 0.2.0)

cn: display column names

Description

Return the column names of a data.frame or a matrix in one-column format for an easy visual inspection.

Usage

cn(x)

Arguments

x
a data.frame or a matrix with column names.

Value

A one-column matrix with the column names of x.

Examples

Run this code

data(iris)

cn(iris)


Run the code above in your browser using DataLab