[R] How to best read in this data / Switching rows and colums
mika03
carlmika at yahoo.de
Wed Apr 2 16:15:30 CEST 2008
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.
More information about the R-help
mailing list