Displaying 1 result from an estimated 1 matches for "xyzblabla1".
Did you mean:
xyzblabla2
2008 Oct 17
2
A question about "union"
...elements to get their union, but I have many vectors and I want to get
the union of all of them. So I wrote a loop:
all <-c();
for(var in ls(pattern="xyz"))
# all of the vectors with pattern of "xyz"
{
all <- union(all, var);
}
but the result is like this: ("xyzblabla1", "xyzblabla2", "abcxyz", ...
) -- just a collection of the variable names, not the union of their
elements.
How can I solve this problem?
thanks!
Leon