Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old April 14th, 2007, 08:01 AM
David Hajage
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Read a .sas7bdat file

Hello useRs,

I would like to import a data frame in a sas format (.sas7bdat).

I have installed "foreign" library, and tryed to use "read.ssd" function :

read.ssd("these", "fus9706.sas7bdat")
sh: sas: not found
SAS failed. SAS program at /
a log and other error products should be in the vicinity
ls: file2ae8944a.log: Aucun fichier ou de ce type
NULL
Warning message:
Le code par SAS est 32512 in: read.ssd("these", "fus9706.sas7bdat")

Is it possible to read this file with R ?

Thank you for your help.

David

[[alternative HTML version deleted]]



R-help (AT) stat (DOT) math.ethz.ch mailing list

PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

Reply With Quote
  #2  
Old April 14th, 2007, 08:31 AM
Marc Schwartz
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Read a .sas7bdat file

Sun, 2007-03-18 at 18:42 +0100, David Hajage wrote:
Hello useRs,

I would like to import a data frame in a sas format (.sas7bdat).

I have installed "foreign" library, and tryed to use "read.ssd" function :

read.ssd("these", "fus9706.sas7bdat")
sh: sas: not found
SAS failed. SAS program at /
a log and other error products should be in the vicinity
ls: file2ae8944a.log: Aucun fichier ou rpertoire de ce type
NULL
Warning message:
Le code renvoy par SAS est 32512 in: read.ssd("these", "fus9706.sas7bdat")

Is it possible to read this file with R ?

Thank you for your help.

David

That format is proprietary to SAS. You would need:

1. A licensed copy of SAS available (which is called from read.ssd())
and the lack of which results in the error above. Note the 'sascmd'
argument in read.ssd():

character string giving full path to SAS executable.


2. A third party conversion application (such as DBMS/Copy) which can
read the proprietary SAS dataset and export it to a format that can be
read by R, such as a CSV file.


If the entity that provided you with the SAS dataset can export it to an
alternative format, that would be helpful. There are also functions
available in R which can read the so-called SAS Transport format (which
is openly defined). These would include:

read.xport() in foreign
sasxport.get() in Hmisc, which uses the former

You may wish to search the r-help archives as I recall issues with the
use of the above functions that may require some further insights.

HTH,

Marc Schwartz


R-help (AT) stat (DOT) math.ethz.ch mailing list

PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

Reply With Quote
  #3  
Old April 14th, 2007, 08:31 AM
Peter Dalgaard
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Read a .sas7bdat file

David Hajage wrote:
Hello useRs,
>

I would like to import a data frame in a sas format (.sas7bdat).
>

I have installed "foreign" library, and tryed to use "read.ssd" function :
>


>read.ssd("these", "fus9706.sas7bdat")
>

sh: sas: not found
SAS failed. SAS program at /
a log and other error products should be in the vicinity
ls: file2ae8944a.log: Aucun fichier ou de ce type
NULL
Warning message:
Le code par SAS est 32512 in: read.ssd("these", "fus9706.sas7bdat")
>

Is it possible to read this file with R ?
>


Not until SAS or someone else comes up with a description of the file
format. Till then, you need SAS itself or one of a couple of
special-purpose closed-source conversion tools (Stat/Transfer, DBMS/Copy).
Thank you for your help.
>

David
>
>



R-help (AT) stat (DOT) math.ethz.ch mailing list

PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

Reply With Quote
  #4  
Old April 14th, 2007, 09:01 AM
David Hajage
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Read a .sas7bdat file

Thank you for your answer.

The big problems are :
- I don't have SAS
- I work on a linux system

But, I've just found a solution :
- I have downloaded SAS viewer (free) :

- I have installed it with Wine.
- Then, I can read my sas file and export it into a common format (csv)

This program works perfectly with Wine.

Thank you very much.

2007/3/18, Peter Dalgaard <p.dalgaard (AT) biostat (DOT) ku.dk>:
>

David Hajage wrote:
Hello useRs,
>

I would like to import a data frame in a sas format (.sas7bdat).
>

I have installed "foreign" library, and tryed to use "read.ssd" function
:
>
>
>read.ssd("these", "fus9706.sas7bdat")
>>

sh: sas: not found
SAS failed. SAS program at /
a log and other error products should be in the vicinity
ls: file2ae8944a.log: Aucun fichier ou de ce type
NULL
Warning message:
Le code par SAS est 32512 in: read.ssd("these", "
fus9706.sas7bdat")
>

Is it possible to read this file with R ?
>
>

Not until SAS or someone else comes up with a description of the file
format. Till then, you need SAS itself or one of a couple of
special-purpose closed-source conversion tools (Stat/Transfer, DBMS/Copy).
Thank you for your help.
>

David
>
>
>
>
>


[[alternative HTML version deleted]]



R-help (AT) stat (DOT) math.ethz.ch mailing list

PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Development > Read a .sas7bdat file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
Stay green...Green IT