[R] turning list-elements into a vector
huan.huang@bnpparibas.com
huan.huang at bnpparibas.com
Wed Jul 16 17:00:42 CEST 2003
hi Emkiba, try this:
x <- matrix(1:12, 4, 3)
y <- matrix(x, 12, 1)
yy <- y[,1]
regards,
Huan
Internet
emkiba at gmx.de@stat.math.ethz.ch - 07/16/2003 03:24 PM
Sent by: r-help-bounces at stat.math.ethz.ch
To: r-help
cc:
Subject: [R] turning list-elements into a vector
Hi.
Can anyone help me?
I want to create a vector from specific matrix-elements( e.g.[1,1]) these
matrices are elements of a list.
Is there any possibility to work without a loop? (e.g. with "lapply"?)
hope, you can help me
thank you
Michael
[[alternative HTML version deleted]]
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
This message and any attachments (the "message") is\ intende...{{dropped}}
More information about the R-help
mailing list