display column names

Share:

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.