Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Help on GNU R & SPSS file

  1. #1
    Join Date
    Oct 2005
    Beans
    1,887

    Help on GNU R & SPSS file

    I'm trying to convert an spss.sav file to something that R can understand. I try to use foreign / read.spss but whenever I use
    Code:
    foreign
    #or#
    read.spss
    it says "object not found". I am doing something wrong but what? If I can convert this file, I can start trying to learn R finally...

    I have r-cran-foreign installed tru the repos, along with about 20 more crans. any help would be really appreciated... thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Ireland
    Beans
    100
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Help on GNU R & SPSS file

    If it is an extra package that is installed it has to be loaded first. Try something like this.
    load.package(foreign)
    or whatever your package is called

  3. #3
    Join Date
    Oct 2005
    Beans
    1,887

    Re: Help on GNU R & SPSS file

    didn't work:
    Code:
    > load.package(foreign)
    Error: couldn't find function "load.package"
    > load.packages(foreign)
    Error: couldn't find function "load.packages"

  4. #4
    Join Date
    Jan 2006
    Location
    Ireland
    Beans
    100
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Help on GNU R & SPSS file

    Ok you are right. My mistake. I always miss this.
    The comand is library() eg
    library(foreign)

    The empty library() shows you the packages you have downloaded.

  5. #5
    Join Date
    Oct 2005
    Beans
    1,887

    Re: Help on GNU R & SPSS file

    wow this is some hardcore stuff. let's see if I will stay stable after this experience...

    thanks a LOT!! I would never have found it.

  6. #6
    Join Date
    Jan 2006
    Location
    Ireland
    Beans
    100
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Help on GNU R & SPSS file

    Oh something more about R. Make a dir and before you start R cd in it. When quiting with q() command you can save workspace in it, so you don't loose your data.

    R package is analogous to S-plus.

    Good luck!

  7. #7
    Join Date
    Oct 2005
    Beans
    1,887

    Re: Help on GNU R & SPSS file

    thanks again I did make a new dir, but it looks like it doesn't save the data. I'm not surprised, as this is my second day (15 hours...) with R. I'll found a couple of pdfs tomorrow to get started with this wierd thingy (now that I know -kinda- howto import my dear data). Thank god there are people (you) who know about R in the forums I wish my stupid schools weren't stuck with windows and offered alternative courses to spss.

  8. #8
    Join Date
    Jan 2006
    Location
    Ireland
    Beans
    100
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Help on GNU R & SPSS file

    Try this
    http://cran.r-project.org/doc/manuals/R-intro.pdf
    It is from the official site. I found most of the info there.

    I wish that too. At least S-plus. It is closer to R. The truth is that SPSS and Minitab are easier. I use in Windows Minitab. For an enterprise Minitab is the best I think. There is also ecxel for windows.

    For Linux if you want some easy (but not much statistical job to do you can try Gnumeric (Tools>Statistical analysis) and OpenOffice (but you have to download a package called OOoStat_0-4.zip - Here is an address http://prdownloads.sourceforge.net/o...4.zip?download )
    Last edited by NoNo_231; March 4th, 2006 at 09:22 AM.

  9. #9
    Join Date
    Jan 2006
    Location
    Ireland
    Beans
    100
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Help on GNU R & SPSS file

    I found a GUI for R. Here in the forums. The R Commander package (r-cran-rcmdr) actually provides a pretty good gui. If somebody needs it.

  10. #10
    Join Date
    Oct 2005
    Beans
    1,887

    Re: Help on GNU R & SPSS file

    Quote Originally Posted by NoNo_231
    I found a GUI for R. Here in the forums. The R Commander package (r-cran-rcmdr) actually provides a pretty good gui. If somebody needs it.
    And for anyone who, like me, is clueless about how to use R, to launch the gui, start R and type library(Rcmdr). -if I remember correctly

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •