Hi all, I have Splus and R both on my unix machine. I intend to keep only one of them. R looks to be a better choice. But I want to confirm. Is there any function or group of functions in Splus that are absent in R? Thanks, Saket. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This is probably a much more narrow answer than what you wanted, but I noticed the other day that Splus has a function called qdunnett() that R lacks (this has to do with multiple comparisons, I believe). Does anyone know if there's an R equivalent to this SPlus function? -----Original Message----- From: owner-r-help at stat.math.ethz.ch [mailto:owner-r-help at stat.math.ethz.ch]On Behalf Of Saket Joshi Sent: Friday, October 25, 2002 3:02 PM To: r-help at stat.math.ethz.ch Subject: [R] R v/s S-plus Hi all, I have Splus and R both on my unix machine. I intend to keep only one of them. R looks to be a better choice. But I want to confirm. Is there any function or group of functions in Splus that are absent in R? Thanks, Saket. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Right. Splus has its own multicomp() function, which R doesn't have. However, there's the multcomp package which does handle many-to-one comparisons (but not exactly the Dunnett procedure). For Saket's original question: Splus 6.x also comes with the `robust' and `missing' libraries for robust modelling and missing value imputations. I believe there are also bootstrap functions that people at Insightful wrote. Also, it's probably fair to say that the trellis graphics in Splus is more `mature' (although I must say that lattice in R has come a long way!). R does not have brush(), but you can do that (and lots more) with the xgobi or the Rggobi package. gam() in the mgcv package fits one type of GAM, but gam() in Splus is different (and allow both loess and spline terms). twoway() in Splus is missing in R (although there's medpolish in the eda package). I'm sure there's more, but these are what I can think of off the top of my head. It depends on whether these things matters to you. (Why can't you keep both? It doesn't really take up that much room. Also, to be fair, should you also ask on S-news to get opnions from "the other side"?) Andy -----Original Message----- From: John Deke [mailto:JDeke at mathematica-mpr.com] Sent: Friday, October 25, 2002 4:09 PM To: 'Saket Joshi'; 'r-help at stat.math.ethz.ch' Subject: RE: [R] R v/s S-plus This is probably a much more narrow answer than what you wanted, but I noticed the other day that Splus has a function called qdunnett() that R lacks (this has to do with multiple comparisons, I believe). Does anyone know if there's an R equivalent to this SPlus function? -----Original Message----- From: owner-r-help at stat.math.ethz.ch [mailto:owner-r-help at stat.math.ethz.ch]On Behalf Of Saket Joshi Sent: Friday, October 25, 2002 3:02 PM To: r-help at stat.math.ethz.ch Subject: [R] R v/s S-plus Hi all, I have Splus and R both on my unix machine. I intend to keep only one of them. R looks to be a better choice. But I want to confirm. Is there any function or group of functions in Splus that are absent in R? Thanks, Saket. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. ============================================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
No doubt there are many capabilities that S-PLUS has that R lacks. Given the considerable price difference (thousands of dollars versus free), the choice depends on how much you value the additional capabilities of S-PLUS, the technical support, and the scripts you've developed in S-PLUS. From my perspective, I had to make very few changes to my S-PLUS scripts for them to work in R (notably panel functions) and haven't suffered from the transition. Regards, Andrew C. Ward CAPE Centre Department of Chemical Engineering The University of Queensland Brisbane Qld 4072 Australia andreww at cheque.uq.edu.au On Saturday, October 26, 2002 5:02 AM, Saket Joshi [SMTP:joshi at engr.orst.edu] wrote:> Hi all, > > I have Splus and R both on my unix machine. I intend to keep only one of > them. R looks to be a better choice. But I want to confirm. Is there any > function or group of functions in Splus that are absent in R? > Thanks, > Saket. > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-> r-help mailing list -- Readhttp://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 >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._._._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Saket Joshi <joshi at engr.orst.edu> wrote:> I have Splus and R both on my unix machine. I intend to keep only one... > Is there any function or group of functions in Splus that are absent in R?I'm attaching my personal list of differences (which has shrunk considerably since I posted it here a year ago). Big picture, the most significant ones (scoping rules, graphics model, for-loop efficiency) favor R in my opinion. Please see <http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html> ("R and S") also. A very nice feature of R is that users can contribute new features or bug fixes by submitting packages to CRAN or lobbying the R Core team, and all underlying C code is visible to the user. Also, questions sent to R-help are immediately tackled by several very brilliant (if sometimes ornery) experts, whereas Insightful's technical support (in my experience) can be polite but useless. S-Plus does have a fancier GUI (but I don't use it). I think the value added by Insightful is mainly in their ongoing efforts to build proprietary modules (FinMetrics, NuOpt), external interfaces (Excel, financial data), and tools that encompass/extend S-Plus (Insightful Miner, StatServer). In other words, they do offer a broader product range. *** R vs. S-Plus (DB 10/28/02) *** Language differences: - Scoping rules differ. In R, functions see the functions they're in. Try: f1 <- function() {x <- 1; f2 <- function() print(x); f2()}; f1() - Data must be loaded explicitly in R, can be attach()'ed in S-Plus. Addressed by my contributed package "g.data". - R has a character-type NA, so LETTERS[c(NA,2)] = c(NA,"B") not c("","B") - paste("a","b", sep="|", sep=".") is an error in R; ok in S-Plus. - for() loops more efficient in R. Graphics differences: - Log scale indicated in S-Plus with par(xaxt)=="l", in R with par("xlog")==T. - R has cex.main, col.lab, font.axis, etc. Thus title("Hi", cex=4) fails. - R has plotmath and Hershey vector fonts. - R has palette(rainbow(10)) to define colors (both screen and printer). Functions missing from R: - unpaste, slice.index, colVars Functions missing from S-Plus: - strsplit, sub, gsub, chartr, formatC Functions that work differently: - system() has no "input" argument in R. - substring(s,"x") <- "X" only works in S-Plus, but R has s <- gsub("x","X",s). - scan expects numbers by default in R. - which(<numeric>) converts to logical in S-Plus, is an error in R. - The NULL returned by if(F){...} is invisible in R, visible in S-Plus. - The NULL returned by return() is visible in R, invisible in S-Plus. - Args to "var" differ, and R has "cov". S-Plus na.method="a" ~ R use="p". - var (or cov) drops dimensions in S-Plus, not R. - cut allows labels=F in R, not S-Plus (also left.include=T becomes right=F). - Last argument of a replacement function must be named "value" in R. - tapply(1:3, c("a","b","a"), sum) is a 1D-array in R, a vector in S-Plus. -- -- David Brahm (brahm at alum.mit.edu) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._