Loading data with row names into Deducer

20 views
Skip to first unread message

JSS

unread,
Nov 1, 2012, 2:49:40 PM11/1/12
to ded...@googlegroups.com
Hi,

Is there any way to import an excel or csv file and designate a certain row as row names while importing into Deducer's GUI?  Right now, I get a row with the row names listed, but i would like the rows actually to have the names of a particular row.

Bill Altermatt

unread,
Nov 3, 2012, 8:32:44 PM11/3/12
to ded...@googlegroups.com
Hi, JSS,

Do you mean that you would like for the first row of a data file to become the *column* names? Typically, Deducer will offer me that option when I load in new data. If you aren't able to do it there, you should be able to set them manually:

Assuming your data frame is called george and the labels for your variables are in the first row of your data:

colnames(george) <- george[1,]

Should do the trick.

Bill

Sent from my iPod
Reply all
Reply to author
Forward
0 new messages