Hi,

I use the epicalc package which provides the function aggregate.numeric.

Unfortunately aggregate.numeric produces warnings when aggregate is used by 
functions not under my control on a numeric value. If I don't load epicalc, 
aggregate.default is used instead by these functions and does not produce any 
warning.

However I need epicalc. So to get around this, what I would do is firstly 
remove aggregate.numeric:

rm(aggregate.numeric, pos=which(search() == "package:epicalc"))

This worked fine in R 2.13.1. However in R 2.14.0 I am getting the following:

Error in rm(aggregate.numeric, pos = which(search() == "package:epicalc")) : 
  cannot remove bindings from a locked environment

Is there some way I can remove aggregate.numeric, or otherwise prevent it from 
being used?

Thanks in advance,

Oliver

______________________________________________
R-help@r-project.org 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.

Reply via email to