SPSS or R file to Excel?
Cash
New Altair Community Member
I downloaded a file of data (locations, phone numbers, etc.) from a website in both R and in SPSS. I need the data in Excel. I started off with Read SPSS and indicated the downloaded SPSS file in the "filename" parameter. Then connected the output to Write Excel. The result just says:
I'm going crazy over here. Any help would be appreciated. Thanks!
File
Memory buffered fileI'm going crazy over here. Any help would be appreciated. Thanks!
1
Best Answer
-
Hmm, that's tricky. I downloaded "delimited" file which is a CSV file and uploaded using read CSV in rapidminer and it worked perfectly. Not sure why the SPSS file is showing State which is a text column as numerics.
1
Answers
-
When I run the Read SPSS Operator with the data set I downloaded, the results are all numerical...including the columns that should be text, like type of hospital, etc. Is there a parameter I need to change for this?1
-
Oh yeah sorry for that. Yep its the "Res"1
-
Hi @varunm1,
I connected the thr node to res and ran the process, but I'm still just getting numerical values instead of text. Do you think the file is fouled? Here's what I have:
The link to the data is here: https://www.datafiles.samhsa.gov/study-dataset/national-survey-substance-abuse-treatment-services-2018-n-ssats-2018-ds0001-nid18765
It's the SPSS file under Data Downloads. If you run this, are you seeing the same numerical representation as I am above?1 -
Hmm, that's tricky. I downloaded "delimited" file which is a CSV file and uploaded using read CSV in rapidminer and it worked perfectly. Not sure why the SPSS file is showing State which is a text column as numerics.
1 -
OMG, how embarrassing. Well if "delimited" downloads as a CSV, then I'm good for now. lol . I was trying to get this data in csv or xlsx form, so it looks like this solves my problem. Thanks so much for the help!2
-
Haha ya, sometimes we skip small things and it happens to all of us. I don't have spss installed to take a look at the raw file. But it is a good question to check if there is any discrepancy in importing.2