[R] turning list-elements into a vector

Spencer Graves spencer.graves at pdf.com
Wed Jul 16 16:50:30 CEST 2003


Have you considere "unlist"?  Also, note that a matrix is a vector with 
a dim attribute, and a data.frame is actually a list with some other 
attributes.

hope this helps.
spencer graves

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]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list