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

View source: R/coln.R

colnR Documentation

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.

Author(s)

Mikko Vihtakari

See Also

data.frame, colnames

Examples

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

MikkoVihtakari/sclero documentation built on March 21, 2023, 11:48 a.m.