Skip to content
Prev 318576 / 398513 Next

using reserved words in R, and reuse variable names in different functions

To wit:
  "Firstly, don't call your matrix 'matrix'. Would you call your dog 'dog'? Anyway, it might clash with the function 'matrix'"

I once had a cat named "kitty" and she never had a problem with it.

Clashes between non-functions and functions that cause problems are not that common.  With 4000 packages, each with a number of functions, it is hard to avoid using a name that someone has used for a function.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com