[R] Re: Strange behaviour of spectrum()?

Jim Lemon bitwrit at ozemail.com.au
Thu Jul 19 04:25:16 CEST 2001


MichaelNielsen at synergy.com.au wrote:
> 
> ... it raises the question about how R-guru's manage inadvertent clobbering
> of magic names.  Constructive suggestions would be warmly received.

Caveat:  I am no guru
Suggestion: There is a little function I included in "Kickstarting R"
that might help you.

dup.name<-function(name) {
 if(is.character(name))
  return(length(grep(name,objects(1:length(search())))) > 0)
 cat("Usage: dup.name(name)\n\twhere name is a character string\n")
}

Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list