Michael Kirschbaum wrote:

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


sapply(list, function(x) x[1,1])

Uwe Ligges

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

Reply via email to