R nodes in SPSS modeler

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

R nodes in SPSS modeler

Chichi Shu
Hi, Listers,
 
I thought with R nodes you could program in SPSS modeler with R like you do in R studio or any R GUI.
 
After I installed the necessary packages and programmed in R console, I tried to move my R code to read facebook comments and posts to one the R nodes.
 
But it looks like the R nodes included can only accept a range of very specific commands. So in my case the code generating datasets from reading Facebook cannot be executed in any of the R nodes in Modeler.
 
Am I missing something or is this just the way it works?
 
Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: R nodes in SPSS modeler

Jon K Peck
There are several different kinds of R nodes with different capabilities.  Perhaps you need a Transform R node.  There are no limits on the R code, but there are some particular objects you need to use to accept data or metadata coming in from the stream or to create stream data downstream.  Modeling and output nodes are other possible types.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Chichi Shu <[hidden email]>
To:        [hidden email],
Date:        04/22/2014 09:30 AM
Subject:        [SPSSX-L] R nodes in SPSS modeler
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hi, Listers,
 
I thought with R nodes you could program in SPSS modeler with R like you do in R studio or any R GUI.
 
After I installed the necessary packages and programmed in R console, I tried to move my R code to read facebook comments and posts to one the R nodes.
 
But it looks like the R nodes included can only accept a range of very specific commands. So in my case the code generating datasets from reading Facebook cannot be executed in any of the R nodes in Modeler.
 
Am I missing something or is this just the way it works?
 
Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: R nodes in SPSS modeler

Chichi Shu
Thanks, Jon.
 
I’m having difficulty even at check the working directory of the R nodes in SPSS modeler. No matter in which R nodes I type “getwd()”, it always tells me that there is no executable node?
 
Has anyone tried to use R nodes to create a dataset?
 
Thanks,
Chi-square
 
 
 
 
 
Sent: Tuesday, April 22, 2014 11:54 AM
Subject: Re: [SPSSX-L] R nodes in SPSS modeler
 
There are several different kinds of R nodes with different capabilities.  Perhaps you need a Transform R node.  There are no limits on the R code, but there are some particular objects you need to use to accept data or metadata coming in from the stream or to create stream data downstream.  Modeling and output nodes are other possible types.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        Chichi Shu <[hidden email]>
To:        [hidden email],
Date:        04/22/2014 09:30 AM
Subject:        [SPSSX-L] R nodes in SPSS modeler
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hi, Listers,
 
I thought with R nodes you could program in SPSS modeler with R like you do in R studio or any R GUI.
 
After I installed the necessary packages and programmed in R console, I tried to move my R code to read facebook comments and posts to one the R nodes.
 
But it looks like the R nodes included can only accept a range of very specific commands. So in my case the code generating datasets from reading Facebook cannot be executed in any of the R nodes in Modeler.
 
Am I missing something or is this just the way it works?
 
Thanks!