[R] Name conflict between Epi and ROC packages

Tuszynski, Jaroslaw W.
2005-12-15T15:55:45Z

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?

My machine is WinXP, R-2.2.0, ROC and Epi packages are the latest versions.

Jarek Tuszynski

	[[alternative HTML version deleted]]