Quantcast

Making data in R available to Rcmdr

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Making data in R available to Rcmdr

ToddE
I'm an R newbie.  I'm trying to use Rcmdr to make a 3-D scatterplot of data from a two-independent-variable regression and of the regression plane.

The object "dat" in R contains the data:
> print(dat[1:20,])
         y     x1     x2
1   431.69  76.40 132.80

Rcmdr "knows" about dat.  If I click Data, New data set, and enter the name dat, Rcmdr won't let me use that name.  I get this message: "Data set dat already exists. Overwrite data set?"

However, I don't know how to make dat the active data set in Rcmdr.  Is that possible?

Sorry if this is too basic.  Can't find an answer in "Getting Started With the R Commander" or on this list.

Todd

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Making data in R available to Rcmdr

John Fox
Dear Todd,

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]]
> On Behalf Of ToddE
> Sent: Friday, August 17, 2012 5:57 PM
> To: [hidden email]
> Subject: [R] Making data in R available to Rcmdr
>
> I'm an R newbie.  I'm trying to use Rcmdr to make a 3-D scatterplot of
> data from a two-independent-variable regression and of the regression
> plane.
>
> The object "dat" in R contains the data:
> > print(dat[1:20,])
>          y     x1     x2
> 1   431.69  76.40 132.80
>
> Rcmdr "knows" about dat.  If I click Data, New data set, and enter the
> name dat, Rcmdr won't let me use that name.  I get this message: "Data
> set dat already exists. Overwrite data set?"
>
> However, I don't know how to make dat the active data set in Rcmdr.  Is
> that possible?
>

"Data -> New data set" allows you to enter a new data set in the R data
editor; it doesn't give you access to a data set that's currently in memory.
Assuming that dat is a data frame (and that it really has more than just one
line), you can access it either via "Data -> Active data set -> Select
active data set", or by clicking the "No active dataset" button in the Rcmdr
toolbar.

I hope this helps,
 John

-----------------------------------------------
John Fox
Senator McMaster Professor of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada


> Sorry if this is too basic.  Can't find an answer in "Getting Started
> With the R Commander" or on this list.
>
> Todd
>
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Making-data-
> in-R-available-to-Rcmdr-tp4640672.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Making data in R available to Rcmdr

ToddE
Thanks for your help, John!

I don't know how I missed the Data, Active Data Set sequence.

Todd


From: John Fox [via R] [ml-node+[hidden email]]
Sent: Friday, August 17, 2012 10:51 PM
To: Easton, Todd
Subject: Re: Making data in R available to Rcmdr

Dear Todd,

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]]
> On Behalf Of ToddE
> Sent: Friday, August 17, 2012 5:57 PM
> To: [hidden email]
> Subject: [R] Making data in R available to Rcmdr
>
> I'm an R newbie.  I'm trying to use Rcmdr to make a 3-D scatterplot of
> data from a two-independent-variable regression and of the regression
> plane.
>
> The object "dat" in R contains the data:
> > print(dat[1:20,])
>          y     x1     x2
> 1   431.69  76.40 132.80
>
> Rcmdr "knows" about dat.  If I click Data, New data set, and enter the
> name dat, Rcmdr won't let me use that name.  I get this message: "Data
> set dat already exists. Overwrite data set?"
>
> However, I don't know how to make dat the active data set in Rcmdr.  Is
> that possible?
>

"Data -> New data set" allows you to enter a new data set in the R data
editor; it doesn't give you access to a data set that's currently in memory.
Assuming that dat is a data frame (and that it really has more than just one
line), you can access it either via "Data -> Active data set -> Select
active data set", or by clicking the "No active dataset" button in the Rcmdr
toolbar.

I hope this helps,
 John

-----------------------------------------------
John Fox
Senator McMaster Professor of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada


> Sorry if this is too basic.  Can't find an answer in "Getting Started
> With the R Commander" or on this list.
>
> Todd
>
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Making-data-
> in-R-available-to-Rcmdr-tp4640672.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



If you reply to this email, your message will be added to the discussion below:
http://r.789695.n4.nabble.com/Making-data-in-R-available-to-Rcmdr-tp4640672p4640686.html
To unsubscribe from Making data in R available to Rcmdr, click here.
NAML
Loading...