Bobby Prill <[EMAIL PROTECTED]> writes:
> I am using the "graph" package, which has a function called union()
> that acts on graph objects. There is also a {base} function called
> union(). How do I explicitly specify union {graph} instead of the
> default union {base} ?
>
> union(g1, g2) evokes the wrong union(), which produces an error.
graph::union()
base::union()
And since functions are first class in R, you can make aliases:
gunion <- graph::union
bunion <- base:union
If you are working interactively, then after loading the graph
package, you should get its version of union.
+ seth
--
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org
______________________________________________
[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.