hi Emkiba, try this:

x <- matrix(1:12, 4, 3)
y <- matrix(x, 12, 1)
yy <- y[,1]

regards,

Huan



Internet
[EMAIL PROTECTED]@stat.math.ethz.ch - 07/16/2003 03:24 PM


Sent by:    [EMAIL PROTECTED]

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]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help






This message and any attachments (the "message") is\ intende...{{dropped}}

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to