[R] Union of list elements

Liaw, Andy andy_liaw at merck.com
Fri Dec 17 20:19:29 CET 2004


Initialize the list with the first vector, instead of an emtry list, if you
can.

Andy

> From: Patrick Meyer
> 
> Thank you Gabor.
> 
> But I have a problem with the beginning of my algorithm, 
> where the list 
> you call L is empty... then the code breaks down... It says:
> 
> "Error in any(...,na.rm = na.rm) : incorrect argument type"
> 
> How can I handle this?
> 
> Thank you very much for your help
> 
> Patrick
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list