search for: somenewfunction

Displaying 1 result from an estimated 1 matches for "somenewfunction".

2011 Apr 09
2
Wish there were a "strict mode" for R interpreter. What about You?
...run into trouble because they use the same name for things inside and outside of functions. When they call functions that have mistaken or undefined references to names that they use elsewhere, then variables that are in the environment are accidentally used. Know what I mean? dat <- whatever someNewFunction <- function(z, w){ #do something with z and w and create a new "dat" # but forget to name it "dat" lm (y, x, data=dat) # lm just used wrong data } I wish R had a strict mode to return an error in that case. Users don't realize they are getting nonsense becau...