[R] SAS to R - if you have SAS 8.2+

2007-12-28 Thread Gyula Gulyas
meant to be first cut...but improvements and suggestions are more than welcome! Gyula import.sas.data <- function(inPath,inSAS,as.is=FALSE){ # Function to read in a SAS data file # Packages needed: rcom # inPath: path to SAS file # inSAS: SAS data file name (no extension) # as.is: as

[R] SAS to R - if you don't have a SAS license

2007-12-27 Thread Gyula Gulyas
Hi all, if you do not have a SAS license but want to convert native SAS data files, the solution below will work. # read SAS data without SAS # 1. Download free SAS System Viewer from either of the sites below: # http://www.sas.com/apps/demosdownloads/setupcat.jsp?cat=SAS+System+Viewer (re

Re: [R] rcom close Excel problem

2007-12-15 Thread Gyula
First, you will likely have to use Ctrl-Alt-Delete - Task Manager - to kill the Excel processes. you could also try wb[["Saved"]]<-TRUE # trick Excel to think that the workbook is saved x$Quit() # close Excel rm(list=ls()) # remove all objects attached to environment Gyula On