Re: [R] importing a SAS syntax-files (value labels)

2013-01-17 Thread Anthony Damico
it is easy to parse through yourself. if you don't care about the labels and just want to import fixed-width file data, you can use the SAScii package. if you do, run this code to get 'em :) # load the stringr package to trim strings quickly library(stringr) # example proc format block-- # s

[R] importing a SAS syntax-files (value labels)

2013-01-17 Thread David Studer
Hello everybody, I imported an SAS data-file into R. open.sas7bdat() did not work, so I had to convert it to csv first. Now I would like to recode the value values into factors. Unfortunately I only have a SAS syntax file, having this form: proc format; value $resstatus 'B'= 'Jahresaufenthalt