powered by
Return colnames in a table with index numbers.
icolnames(df)
A data.table with the two columns index and name is returned.
data.table
index
name
A data.frame object.
data("iris") icolnames(iris)
Run the code above in your browser using DataLab