R-alpha: S vs. R

Mike Meyer (mikem@stat.cmu.edu)
Tue, 28 May 1996 14:23:55 -0400

Message-Id: <199605281823.OAA15032@desire.stat.cmu.edu>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: S vs. R
Date: Tue, 28 May 1996 14:23:55 -0400
From: Mike Meyer <mikem@stat.cmu.edu>

Here are two differences between S and R, that make a difference.

1) coercion to logical.   R just doesn't do it.
R> as.logical(1)
Error: numeric vectors cannot be coerced to logical
S> as.logical(1)
[1] T

I can probably live with this difference.

2) Manipulation of functions.  In S I can do
S> glm[["control"]]

whereas in R I get,
R> glm[["control"]]
Error in glm[["control"]] : object is not subsettable

The second difference is a real nuisance in porting code that does its
own argument matching.


Mike Meyer, Department of Statistics, Carnegie Mellon University
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch