, D3.1, D4, D4.1, E2, E2.1, E3, E3.1, E4,
E4.1, F1, F1.1, F3, F3.1, F2, F2.1, F4, F4.1,
G1, G1.1, G2, G2.1), class = data.frame, row.names = c(NA,
-28L))
--
View this message in context:
http://r.789695.n4.nabble.com/Breaking-up-a-Row-in-R-transpose-tp4607658p4610151.html
Sent from the R
this message in context:
http://r.789695.n4.nabble.com/Breaking-up-a-Row-in-R-transpose-tp4607658.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
On Thu, May 03, 2012 at 07:36:45PM -0700, marc212 wrote:
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
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
On Fri, May 04, 2012 at 11:11:47AM -0700, marc212 wrote:
I have something like 28 rows and 6000 columns. How would I configure this
with for loops.
The transformation may be splitted into simpler pieces using a for
loop over the 28 rows. Try the following.
orig - rbind(
0=c(5, 6, 6, 7, 7,
)
dimnames(x) - list(cnames, LETTERS[seq_len(nc)])
t(x)
})
names(res) - rownames(Orig)
res
do.call(cbind, res)
And it avoids loops.
Hope this helps,
Rui Barradas
--
View this message in context:
http://r.789695.n4.nabble.com/Breaking-up-a-Row-in-R-transpose
frame
Any help is much appreciated.
Thank you.
--
View this message in context:
http://r.789695.n4.nabble.com/Breaking-up-a-Row-in-R-transpose-tp4607658p4609658.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org
/Breaking-up-a-Row-in-R-transpose-tp4607658p4609748.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org
Barradas
--
View this message in context:
http://r.789695.n4.nabble.com/Breaking-up-a-Row-in-R-transpose-tp4607658p4610046.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
in context:
http://r.789695.n4.nabble.com/Breaking-up-a-Row-in-R-transpose-tp4607658p4610059.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
10 matches
Mail list logo