sas7bdat icon indicating copy to clipboard operation
sas7bdat copied to clipboard

Error on R3.1.1 trying to read .sas7bdat file

Open segevmalool opened this issue 11 years ago • 1 comments

Hello, I was trying to read a .sas7bdat dataset from this source

http://hints.cancer.gov/dataset.aspx?chkAcceptTerm=on&[email protected]

into R using the read.sas7bdat() function, but the following error was returned:

Error in read.sas7bdat("hints4cycle3_public.sas7bdat") : found 419 column formats and labels 418 expected please report bugs to maintainer

Couldn't say what it means, since I'm not familiar with SAS. Actually, I'm trying to avoid SAS by learning how to interface everything to R.

Cheers,

Segev

segevmalool avatar Jul 20 '14 20:07 segevmalool

Hello.

I'm afraid I can't help you with the R sas7bdat package, but I tried transforming that file to .csv using the parso Java library and it worked fine. You can find my badly written Java wrapper code in github at harrysouthworth/unsas. I can offer some small amount of help getting that running for you, but I'm no kind of Java programmer and find it all a bit hit and miss. If you're desperate for the data, let me know and I'll zip it and email it to you.

Harry

harrysouthworth avatar Sep 07 '14 12:09 harrysouthworth