SPSS or R file to Excel?

Cash
Cash New Altair Community Member
edited November 5 in Community Q&A
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:

       File

Memory buffered file
I'm going crazy over here.  Any help would be appreciated.  Thanks!

Best Answer

  • varunm1
    varunm1 New Altair Community Member
    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.

Answers

  • Cash
    Cash New Altair Community Member
    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?
  • varunm1
    varunm1 New Altair Community Member
    edited February 2020
    Hello @Cash

    Can you connect the "Thr" port of write excel to "Res" port of process and run it.

    You can also mention the location on your computer where you want to store this excel

    Please inform us if you still have issues.
  • Cash
    Cash New Altair Community Member
    Hello @varunm1

    I had the address of where to store the output entered as a destination on my desktop.  By "out port of process" do you mean the res on the far right side?  The only out node I see is coming from the Read SPSS operator.
  • varunm1
    varunm1 New Altair Community Member
    Oh yeah sorry for that. Yep its the "Res"
  • Cash
    Cash New Altair Community Member
    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?
  • varunm1
    varunm1 New Altair Community Member
    Hello @Cash

    My answer is just to store excel. I saw your other comment now, will check it.
  • varunm1
    varunm1 New Altair Community Member
    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.
  • Cash
    Cash New Altair Community Member
    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!  
  • varunm1
    varunm1 New Altair Community Member
    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.