Accessing local data frames with STATS GET R

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

Accessing local data frames with STATS GET R

Andy W
I'm having some trouble using the newer STATS GET R extension. It works fine and dandy for accessing external RData files, but when trying to grab a data frame in the local session I am getting an error. Example below:

**************************************************.
BEGIN PROGRAM R.
myDF <- data.frame(cbind(rnorm(10),rnorm(10)))
myDF
END PROGRAM.

STATS GET R FILE=* /GET DATAFRAME=myDF DATASET=Test.
**************************************************.

I subsequently get the error:

Error in dogetr(rfile = "*", dataframe = "myDF", dataset = "Test") :
  object '.globalEnv' not found

Any thoughts?
Andy W
apwheele@gmail.com
http://andrewpwheeler.wordpress.com/
Reply | Threaded
Open this post in threaded view
|

Re: Accessing local data frames with STATS GET R

Jon K Peck
Get the latest version (1.0.2).  Fixed a typo.  I don't know why a similar scenario worked in my tests.


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




From:        Andy W <[hidden email]>
To:        [hidden email],
Date:        05/01/2014 11:17 AM
Subject:        [SPSSX-L] Accessing local data frames with STATS GET R
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I'm having some trouble using the newer STATS GET R extension. It works fine
and dandy for accessing external RData files, but when trying to grab a data
frame in the local session I am getting an error. Example below:

**************************************************.
BEGIN PROGRAM R.
myDF <- data.frame(cbind(rnorm(10),rnorm(10)))
myDF
END PROGRAM.

STATS GET R FILE=* /GET DATAFRAME=myDF DATASET=Test.
**************************************************.

I subsequently get the error:

Error in dogetr(rfile = "*", dataframe = "myDF", dataset = "Test") :
 object '.globalEnv' not found

Any thoughts?



-----
Andy W
[hidden email]
http://andrewpwheeler.wordpress.com/
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Accessing-local-data-frames-with-STATS-GET-R-tp5725760.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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