Learn R Programming

sclero (version 0.2)

coln: Print the order and names of columns in a data frame

Description

Prints the order and names of columns in a data.frame.

Usage

coln(X)

Arguments

X
a data.frame for which the column names should be printed.

Value

A list containing the column names and their numeric order.

See Also

data.frame, colnames

Examples

Run this code
dat <- data.frame(a = 1:10, b = 10:1)
coln(dat)

Run the code above in your browser using DataLab