[R] How to best read in this data / Switching rows and colums

From: mika03 <carlmika_at_yahoo.de>
Date: Wed, 02 Apr 2008 07:15:30 -0700 (PDT)

Hi,

I have to read in data which looks like this:

SeriesA, 5, 5, 5, 5
SeriesB, 8, 5, 8, 8, 7, 10, 2, 7, 3
SeriesC, 5, 5, 8, 4, 7, 7, 4, 5
SeriesD, 5, 9, 5, 4, 2, 3, 10, 1
SeriesE, 7, 10, 9, 5, 8, 6, 10, 9, 5, 10, 4, 3, 2, 10, 8, 8, 10, 10, 10
SeriesF, 1, 2, 1, 5, 1, 7, 5, 7, 7, 3

There are actually much more data points in the data, each line contains between 300 and 500 values.

If I use something like this:

lc <- read.csv("file", header = FALSE, sep = ",", fill = TRUE)

R treats rows as columns and columns as rows. Is there someway to change this bahaviour? Or can i post process the data once I read it in?

Thanks a lot!

-- 
View this message in context: http://www.nabble.com/How-to-best-read-in-this-data---Switching-rows-and-colums-tp16447071p16447071.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 02 Apr 2008 - 17:17:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Apr 2008 - 18:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive