I have the following:
Time A1 A1 B1 B1 C1 C2
x y x y x y
0 5 6 6 7 7 9
1 3 4 4 3 9 9
2 5 2 6 4 7 4
I want to change it to the following:
0
I have something like 28 rows and 6000 columns. How would I configure this
with for loops.
Thank you.
Marc
--
View this message in context:
http://r.789695.n4.nabble.com/Breaking-up-a-Row-in-R-transpose-tp4607658p4609309.html
Sent from the R help mailing list archive at Nabble.com.
_
I am not opposed to for loops just do not know how to implement them.
I am sorry for all the questions I am trying to learn. The posted code does
not work for me in my set I am getting a :
Error in `dimnames<-.data.frame`(`*tmp*`, value = list(c("A1", "A1.1", :
invalid 'dimnames' given for d
structure(list(A2 = structure(c(9L, 4L, 4L, 3L, 5L, 7L, 5L, 7L,
6L, 1L, 1L, 1L, 3L, 4L, 5L, 5L, 2L, 5L, 3L, 4L, 4L, 8L, 4L, 3L,
4L, 5L, 4L, 3L), .Label = c("4.957", "4.958", "4.959", "4.96",
"4.961", "4.962", "4.963", "4.964", "x"), class = "factor"),
A2.1 = structure(c(6L, 2L, 2L, 2L, 2L,
4 matches
Mail list logo