On 16/11/2007, at 9:44 AM, Greg Snow wrote:
>
>
> [snip]
>>
>> or (I can't resist)
>>
>> unlist(lapply(v,function(x,i){x[i]},i=2)) # For more
>> flexibility.
>
> Well, if we are not resisting the fun ones then try:
>
> sapply( v, `[`, i=2)
Admittedly *much* cooler than my somewhat kludgy effort.
cheers,
Rolf
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.