search for: sasformat

Displaying 1 result from an estimated 1 matches for "sasformat".

Did you mean: s_format
2007 Dec 27
1
SAS to R - if you don't have a SAS license
...code below wrkdir<-getwd() # save working directory to reset later # Select the SAS data file... sas.data<-read.table(file.choose(),header=T, sep=",", na.strings=".") # Select SAS variable definition file... sas.def<-read.csv(file.choose()) # str(sas.def) # sas.def$SASFORMAT[sas.def$Type=="Char"]<-"character" # sas.def$SASFORMAT[sas.def$Type=="Num"]<-"numeric" sas.def$SASFORMAT[substr(sas.def$Format,1,4)=="DATE"]<-"date" sas.def<-sas.def[,length(names(sas.def))] # pick last column tmp<-which(...