Skip to content
Prev 27111 / 398500 Next

More info - S-Plus compatability

R's and S-PLUS's write.table functions have different arguments with 
different defaults: discussed in MASS4, for example.  You appear to need 
sep = "," (and FLASE appears to be a typo).  It would be better to use
col.names=FALSE and omit the skip=1.

Three other comments: 

_ is deprecated in both R and S-PLUS, and makes for unreadable code.  
Please don't use it, especially not in postings.

\ needs to be escaped in S/R character strings, hence "\\" is the
character \ (and this *is* in the R FAQ!).

_Data in S-PLUS 4.x (including 2000) is a private directory, and users 
really should not be writing in it like this.  There is a perfectly
good function tempfile() to create temporary files.  Why one needs to 
write out and read back the data is unclear to me.


I would find it much faster to read the FAQs and a good book than to keep
asking for help, but your mileage may vary.  It looks like time would be
better spent learning to do this well rather than learning to replicate
poor S-PLUS code in R.
On Fri, 17 Jan 2003, Neil Shephard wrote: