[R] Calling the correct one of 2 conflicting functions
richards at upci.pitt.edu
Thu Jul 25 17:46:47 CEST 2002
My specific system is
system i386, mingw32
Each of the hmisc and stepfun packages has a function named ecdf(), and I
have my own package which requires both of these packages. Is there a way
to ensure that the correct ecdf function is called by one of my own
functions, that is, if both packages are in the search path? For example,
> vv <- rnorm(1000)
yields a plot using the hmisc ecdf function, and the following additional
staments yield a similar plot using Martin's version:
But then doing
> this <- ecdf(vv,pl=F)
,trying to use an argument to specify Frank's function, leads to an error.
Is there a way to explicitly call the function I want? Thanks in advance.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help