Suppose that I have a list of vectors. I want to compute the union of
all the vectors in the list. I could use 'for' loop to do so. But I'm
wondering what would be a better solution that does not need a 'for'
loop.

l=list(a=c(1,3,4), b=c(1,3,6), c=c(1,3,7), ....)

______________________________________________
R-help@r-project.org 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.

Reply via email to