Hi Michael, Yes, I did tried and still got error:
> library(foreign) > data.dump(oldStyle=TRUE) Error in eval(expr, envir, enclos) : could not find function "data.dump" > source(.trPaths[5], echo=TRUE, max.deparse.length=150) > read.S(file.path("C:/Users/FTSI/Desktop/2 ICGPA/1ACTIVITY.sdd")) Error in read.S(file.path("C:/Users/FTSI/Desktop/2 ICGPA/1ACTIVITY.sdd")) : not an S object Thank you. On Sun, Feb 26, 2017 at 8:12 PM, Michael Dewey <li...@dewey.myzen.co.uk> wrote: > Did you do > library(foreign) > first? > > > On 26/02/2017 07:23, roslinazairimah zakaria wrote: > >> Hi William, >> >> Thank you so much for your reply. >> >> However, I still got error message: >> >> data.dump(oldStyle=TRUE) >>> >> Error: could not find function "data.dump" >> >>> data.restore("C:/Users/FTSI/Desktop/2 ICGPA/1ACTIVITY.sdd") >>> >> Error: could not find function "data.restore" >> >> Thank you. >> >> >> >> On Sun, Feb 26, 2017 at 12:42 AM, William Dunlap <wdun...@tibco.com> >> wrote: >> >> The sdd file extension may mean that the file is in S+ 'data dump' format, >>> made by S+'s data.dump function and readable in S+ by its data.restore >>> function. >>> foreign::data.restore can read some such files in R, but I think it >>> may only read well >>> those with using the pre-1991 format made in more recent versions of >>> S+ with data.dump(old.style=TRUE). >>> Bill Dunlap >>> TIBCO Software >>> wdunlap tibco.com >>> >>> >>> On Fri, Feb 24, 2017 at 8:58 PM, roslinazairimah zakaria >>> <roslina...@gmail.com> wrote: >>> >>>> Dear r-users, >>>> >>>> I would like to read S-Plus data (.ssd) into R. I tried this: >>>> >>>> library(foreign) >>>> read.S("C:/Users/FTSI/Desktop/2 ICGPA/1ACTIVITY.sdd") >>>> >>>> and got this message: >>>> >>>> read.S("C:/Users/FTSI/Desktop/2 ICGPA/1ACTIVITY.sdd") >>>> Error in read.S("C:/Users/FTSI/Desktop/2 ICGPA/1ACTIVITY.sdd") : >>>> not an S object >>>> >>>> What is wrong with this? Thank you so much for your help. >>>> >>>> -- >>>> *Roslinazairimah Zakaria* >>>> *Tel: +609-5492370; Fax. No.+609-5492766* >>>> >>>> *Email: roslinazairi...@ump.edu.my <roslinazairi...@ump.edu.my>; >>>> roslina...@gmail.com <roslina...@gmail.com>* >>>> Faculty of Industrial Sciences & Technology >>>> University Malaysia Pahang >>>> Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia >>>> >>>> [[alternative HTML version deleted]] >>>> >>>> ______________________________________________ >>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>>> https://stat.ethz.ch/mailman/listinfo/r-help >>>> PLEASE do read the posting guide http://www.R-project.org/ >>>> >>> posting-guide.html >>> >>>> and provide commented, minimal, self-contained, reproducible code. >>>> >>> >>> >> >> >> > -- > Michael > http://www.dewey.myzen.co.uk/home.html > -- *Roslinazairimah Zakaria* *Tel: +609-5492370; Fax. No.+609-5492766* *Email: roslinazairi...@ump.edu.my <roslinazairi...@ump.edu.my>; roslina...@gmail.com <roslina...@gmail.com>* Faculty of Industrial Sciences & Technology University Malaysia Pahang Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.