Skip to content

How can I access the title of a table read via read.csv?

4 messages · John, Jorge I Velez, Daniel Nordlund +1 more

#
Look at ?colnames.

colnames(fx1)[2]



Hope this is helpful,

Dan

Daniel Nordlund
Bothell, WA USA
#
Hello,

If it's the title, i.e., the header of a table read in by read.csv maybe

names(fx1)

is better, since data.frames are special cases of lists. The end result 
is of course the same.

Hope this helps,

Rui Barradas

Em 27-07-2012 05:22, Daniel Nordlund escreveu: