search for: sashome

Displaying 10 results from an estimated 10 matches for "sashome".

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...
2005 Sep 26
1
reading SAS data files
I am attempting to read in a SAS 9.1 data file. After starting R I change to the directory containing the sas data file and use the "dir" command to confirm that it is there. Then I run the following R-code: library(foreign) sashome <- "/Program Files/SAS/SAS 9.1" test<-read.ssd(file.path(sashome), "pcb", sascmd = file.path(sashome, "sas.exe")) but R responds with: SAS failed. SAS program at C:\DOCUME~1\DSONNE~1\LOCALS~1\Temp\Rtmp3540\file16169.sas The log file will be file1...
2009 Oct 20
2
Problems importing Unix SAS .ssd04 file to R (Win)
...I'm using SAS on Windows and I'm trying to import that .ssd04 file to R. The file name of the file is testfile.ssd04 and it is located in 'M:\sasuser'. I'm using Windows XP and R 2.91. Basically what I'm doing is ############ r code ############## > library(foreign) > sashome <- "C:/Program Files/SAS Institute/SAS/V8" > folder_for_datafiles <- "M:/sasuser" > read.ssd(folder_for_datafiles, "testfile", sascmd=file.path(sashome, "sas.exe")) SAS failed. SAS program at C:\DOCUME~1\jrara\LOCALS~1\Temp\RtmpAAxO3X\file41bb5a...
2005 Oct 25
1
file size limit for importing SAS file
Does anyone know if there is a file size limit for inputting a SAS data set? The file size I am trying to import is 184 MB. The code is: >library("foreign") > > sashome<-"C:/Program Files/SAS Institute/SAS/V8" > input.data<-read.ssd( file.path("G:/DATA/Cam/ECPATH/FIM"),"tbm_c", + sascmd=file.path(sashome,"sas.exe") ) The return message is: SAS failed. SAS program at C:\DOCUME~1\CAMERO~1.GUE\LOCALS~1\Temp...
2008 Mar 14
2
SAS data
Hello, I am trying to read the SAS file MyData.sa7bdat in R! This file is saved under D:\data! I therefore wrote > path <-"D:/SasData" > sashome <- "C/Progra, Files/SAS Institute/9_1/SAS" > sascmd <- file.path(sashome, "sas.exe") > MyData <- read.ssd(path, "MyData", sascmd=sascmd) The results what I get: SAS failed. SAS program at C:\DOCUME~1\Temp\RtmpcTlKtb\file4eb43288.sas Th...
2008 Dec 03
2
reading version 9 SAS datasets in R
...2\LOCALS~1\Temp\RtmpLqCVUx\file72ae2cd6.sas The log file will be file72ae2cd6.log in the current directory Warning messages: 1: 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...
2009 Nov 09
4
lectura de archivos en formato SAS
Hola. yo soy usuario SAS y ahora estoy intentando comenzar a trabajar en R. Estoy necesitando leer archivos de datos que tengo en formato SAS. Se que esta el package foreing que permite leer directamente datos que se encuentran en ese formato. Alguien podria indicarme como lo debo hacer. Solo quiero leer algunas variables dado que el archivo es extenso. Muchas gracias. Silvia.
2010 Oct 19
1
How to read only ten rows from a SAS dataset (read.ssd)?
I'm trying to read SAS datasets on Windows: sashome <- "C:/Program Files/SAS/SAS 9.1" fold <- "C:/temp" g <- read.ssd(fold, "sasfile", sascmd = file.path(sashome, "sas.exe")) How to get only e.g first ten rows into R? -J
2011 Jan 05
1
Reading large SAS dataset in R
...y. Now I am trying to read the SAS dataset in R (R 2.12.0) using the read.ssd function of the “foreign” package, but I get an error message “SAS failed”. I believe I have specified the paths correctly (after reading some previous posts I made sure that I do it right). Below is the small code: sashome<- "C:/Program Files/SAS/SAS 9.1" read.ssd(libname="R:/", sectionnames="test", sascmd=file.path(sashome, "sas.exe")) Please let me know where I am making the mistake. Is it because of the size of the file or the location of the file (in server instead o...
2013 Jan 02
3
suggestions about import SAS results to R.
Hello all, I have got some data in SAS, and I export it to one excel workbook with multiple sheets, for example, each sheet has the sales information for each state. Then I need to use R to do plotting, analysis on those sales data, where I need to load the data from excel to R. When I read the article at this link: http://yihui.name/en/2009/09/how-to-import-ms-excel-data-into-r/ I am