[R] Reading S-plus data in R

roslinazairimah zakaria roslinaump at gmail.com
Sun Feb 26 13:28:38 CET 2017


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 <lists at 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 <wdunlap at 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
>>> <roslinaump at 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: roslinazairimah at ump.edu.my <roslinazairimah at ump.edu.my>;
>>>> roslinaump at gmail.com <roslinaump at gmail.com>*
>>>> Faculty of Industrial Sciences & Technology
>>>> University Malaysia Pahang
>>>> Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia
>>>>
>>>>         [[alternative HTML version deleted]]
>>>>
>>>> ______________________________________________
>>>> R-help at 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: roslinazairimah at ump.edu.my <roslinazairimah at ump.edu.my>;
roslinaump at gmail.com <roslinaump at gmail.com>*
Faculty of Industrial Sciences & Technology
University Malaysia Pahang
Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia

	[[alternative HTML version deleted]]



More information about the R-help mailing list