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

1
cn(x)

Arguments

x

a data.frame or a matrix with column names.

Value

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

Note

This function comes from an idea by Antoine Tremblay.

Author(s)

Giorgio Arcara

Examples

1
2
3

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.