R 2 SPSS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

R 2 SPSS

CJ Kim
Dear good people,
I have R code written by my friend to do something unavailable in SPSS.
Is there any way that I can bring this R code to run in SPSS platform?

Thanks,


CJ Kim

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: R 2 SPSS

Peck, Jon
Since version 16, SPSS has had a plug-in to enable running R code within SPSS.  You can get the plug-in from SPSS Developer Central (www.spss.com/devcentral) for version 16 or 17.  When you install the plugin, full documentation for the apis is installed.

You can get some or all of the active SPSS data into your R program like this:
dta = spssdata.GetDataFromSPSS()

  Text and charts created by the R code you received will appear automatically in the SPSS Viewer.  There are functions in the plugin that enable creating SPSS pivot tables, as well.

The PowerPoint on the front page of Developer Central entitled Programmability in SPSS Statistics 17 includes an example of integrating an R package, and the plugin documentation and the Programming and Data Management book liked from Devcentral have extensive discussions of the integration process.

SPSS 16 uses R 2.5, and SPSS 17 uses R 2.7.

HTH,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of CJ Kim
Sent: Tuesday, March 10, 2009 8:55 PM
To: [hidden email]
Subject: [SPSSX-L] R 2 SPSS

Dear good people,
I have R code written by my friend to do something unavailable in SPSS.
Is there any way that I can bring this R code to run in SPSS platform?

Thanks,


CJ Kim

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD