Displaying 4 results from an estimated 4 matches for "sashelp".
Did you mean:
sashal
2007 Oct 09
2
read sas data into R
Hi
I am having trouble using read.ssd. Can someone help?
The code that I have written is
*sashome<-"C:/Mary/Datasets"*
*read.ssd(read.ssd(file.path(sashome, "core", "sashelp"), "surv_1v",*
*sascmd = file.path(sashome, "sas.exe"))*
Here the path that I have given is correct, where the dataset
surv_1v.sas7bdat is kept. The message that R gives me is this:
*SAS failed. SAS program at
C:\DOCUME~1\Royerm02\LOCALS~1\Temp\Rtmpdi2Osb\file4ff053f7.sa...
2008 Dec 03
2
reading version 9 SAS datasets in R
...: In system(paste(sascmd, tmpProg)) : "sas" not found
2: In read.ssd("D:\\CES Analysis\\Data", "fadata") :
SAS return code was -1
> sashome <- "C:\\Program Files\\SAS\\SAS 9.1"
> fadata2 <- read.ssd(file.path(sashome, "core", "sashelp"), "fadata",
sascmd=file.path(sashome, "sas.exe"))
SAS failed. SAS program at
D:\DOCUME~1\re06572\LOCALS~1\Temp\RtmpLqCVUx\file6df11649.sas
The log file will be file6df11649.log in the current directory
Warning message:
In read.ssd(file.path(sashome, "core",...
2013 Feb 27
0
question about read.ssd function
Hi there,
I am trying to read SAS dataset into R and have observed some weird behaviors.
Here is my setting. I copied retail.sas7bdat from sashelp and placed it in my test directory C:\Temp.
In R, I submitted the following command
>read.ssd("C:/Temp", "retail", sascmd="C:/Program Files/SAS/SASFoundation/9.2/sas.exe")
The data has been read correctly. But when I changed "retail" to a different sas...
2012 Mar 28
2
SAS Import with sas.get {Hmisc} - status 127 error
I'm trying to import a .sas7bdat dataset into R with sas.get. I'm using
Win-7 and SAS 9.2. I have read the following post and did tweak the line
(127, incidentally) of code.
<http://r.789695.n4.nabble.com/R-Problem-with-sas-get-function-in-Hmisc-td81
4367.html>
http://r.789695.n4.nabble.com/R-Problem-with-sas-get-function-in-Hmisc-td814
367.html
However, I get the following