Dear Todd,
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at
r-project.org]
> On Behalf Of ToddE
> Sent: Friday, August 17, 2012 5:57 PM
> To: r-help at r-project.org
> 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.
>
> ______________________________________________
> R-help at r-project.org 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.