Re: [R] R-source code of a function

2008-07-16 Thread Duncan Murdoch
On 7/16/2008 8:29 AM, arezoo bagheri wrote: Hi, I know that if i want to see the SPLUS or R-source code of a function,i should give the command without the brackets.For example: rsquared.lmRobMM function(x) { str0 <- "Initial S-estimate" str1 <- "Final M-estimate" if(x$est == "final") { z

[R] R-source code of a function

2008-07-16 Thread arezoo bagheri
Hi, I know that if i want to see the SPLUS or R-source code of a function,i should give the command without the brackets.For example:  rsquared.lmRobMM function(x) {  str0 <- "Initial S-estimate"  str1 <- "Final M-estimate"  if(x$est == "final") {   z <- x$r.squared   attr(z, "info") <- str1  }