Re: [R] Name conflict between Epi and ROC packages

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Fri 16 Dec 2005 - 03:53:19 EST

On 15 Dec 2005, JAROSLAW.W.TUSZYNSKI@saic.com wrote:

> The name conflicts in Epi and ROC packages (2 'ROC' functions are
> the problem) cause the following code to work once, but not twice:
>
> library(MASS); data(cats);
> x = cats[,2]
> y = ifelse(cats[,1]=='F',0,1)
> library(Epi); ROC(x,y,grid=0)$AUC
> library(ROC); AUC(rocdemo.sca(y, x, dxrule.sca))
>
> What is the standard way of resolving name conflicts? Ask
> maintainers to resolve it or rename the younger function, use
> namespaces somehow, or something else?

This may not help you now, but in the next Bioconductor release, the ROC package will have a name space. Then you can use ROC::AUC, ROC::ROC to get the functions you want.

+ seth



R-help@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 Received on Fri Dec 16 04:03:16 2005

This archive was generated by hypermail 2.1.8 : Fri 16 Dec 2005 - 09:45:25 EST