[R] function in S

Martin Maechler maechler at stat.math.ethz.ch
Thu Jun 15 11:21:46 CEST 2000


>>>>> "Laura" == Laura Pontiggia <pontla at goose.stat.umn.edu> writes:

    Laura> I have a function in S, and I need to write the same function in
    Laura> R.  Exist a program to translate from S to R ?


I use to say that 97% of S(plus) user written code works unaltered in R.
The problem is with the remaining ones.

The R FAQ (mentioned in the footer of every R-help message)
contains a section on intentional differences between R and S(plus).

You might want to work with just one version of code and use the

	if(is.R()) { ## R 

	} else { ## Splus 

        }

The function is.R (in R) is written such that it should work in all
versions of S.

Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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