Hi all, I'm using R2.0 on linux. I have fixedwidth data consisting of 50 questions on a likert scale. The raw data is coded 1 to 5. I used read.fwf() to read in the data. The problem is that factors isn't created automatically, because the data is coded numerically. To make factors out of the 50 questions I must do: V1 <- factor(V1) I don't want to do it 50 times. Is there a quicker way without using loops? Thanks Hennie
Hennie Gerber Statistician UNISA - Research Support + 27 12 429 3188 Waarskuwing! Die sienings uitgespreek is my eie en nie noodwendig my werkgewer sin nie Warning! All views expressed are my own and not necessarily that of my employer. --------------------------------------------------------------------------- This message (and attachments) is subject to restrictions and a disclaimer. Please refer to http://www.unisa.ac.za/disclaimer for full details. --------------------------------------------------------------------------- <<<<gwavasig>>>> <<<< gwavasig >>>> [[alternative HTML version deleted]] ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
