[R] [Rd] How to create a permanent dataset in R.
Petr PIKAL
petr.pikal at precheza.cz
Mon Jul 27 11:21:34 CEST 2009
Hi
I use saved R file stand.R which looks like this
"stand" <-
list( b110 = c(49.45000, 21.463333, 11.468333, 24.33500, 28.112240),
b120 = c(49.77333, 19.386667, 7.736667, 20.87500, 21.753788),
b130 = c(49.60833, 18.365000, 5.708333, 19.23167, 17.265409),
b140 = c(50.61333, 15.528333, 2.023333, 15.66167, 7.419889),
b160 = c(51.25833, 14.026667, 0.500000, 14.03667, 2.032885),
b180 = c(55.10167, 9.076667, -3.281667, 9.66000, -19.887711),
b222 = c(56.14500, 14.520000, 3.425000, 14.91667, 13.271665),
b225 = c(53.43833, 16.168333, 4.695000, 16.83333, 16.189711),
e7898 =c(50.44200, 17.496000, 5.238000, 18.26400, 16.660000),
lab.nk = c(50.70000, 20.29000, 14.040000, 24.67, 34.68),
mapico = c(65.89, 13.065, 21.07, 24.79, 58.195),
tp100.pr = c(47.88250, 21.09500, 12.697500),
tp100old = c(49.61,22.71,13.93,26.64,31.52),
tp100 = c(49.08,22.24,11.19,24.89402335,26.71196071),
tp200 = c(49.46, 18.5, 8.88, 20.52082844, 25.64100582),
tp200ro = c(49.32, 18.60, 9.85, 21.05, 27.90),
tp302 = c(49.5, 19.7, 10.8, 22.47, 28.73),
tp303.00 = c(49.41000, 16.76000, 6.390000, 17.9368, 20.8701),
tp303.40 = c(48.72000, 15.09000, 5.430000))
and is in my personal function package
and call data(stand) in Rprofile.site to recover it in each session
Regards
Petr
r-help-bounces at r-project.org napsal dne 24.07.2009 20:06:57:
> (redirecting to r-help; it seems more appropriate for such a question)
> Hello,
>
> On Fri, Jul 24, 2009 at 8:11 AM, Albert
EINstEIN<sateeshvarmap at gmail.com> wrote:
> > Actually, we know that If we create a dataset in R ,after closing the
> > session the dataset automatically is closed. I tried for creating
dataset
> > permanently in R.I am facing the problem of creating permanent
dataset.
> > can we create dataset permanently If possible?
> >
> I am not sure what exactly you want to do, but you could use
> save.image() to save R's workspace and re-load it when re-opening R
> via load(). Otherwise you can use Rcmdr or JGR to graphically, that is
> via point-and-click, perform these operations.
> Liviu
>
> ______________________________________________
> 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.
More information about the R-help
mailing list