Hi everybody, 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? Could somebody help me out in this aspect,plz? Any help would be appreciated. Thanks in advance. -- View this message in context: http://www.nabble.com/How-to-create-a-permanent-dataset-in-R.-tp24639146p24639146.html Sent from the R devel mailing list archive at Nabble.com.
Say your dataset is stored in variable "dat". Type:> save(dat, file="mydatfile.RData")Next time you start the session, call: load("mydatfile.RData") And you can reload your dataset. Is this what you meant? HTH, Alex On Fri, Jul 24, 2009 at 2:11 AM, Albert EINstEIN<sateeshvarmap at gmail.com> wrote:> > > Hi everybody, > > 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? > Could somebody help me out in this aspect,plz? Any help would be > appreciated. > > Thanks in advance. > -- > View this message in context: http://www.nabble.com/How-to-create-a-permanent-dataset-in-R.-tp24639146p24639146.html > Sent from the R devel mailing list archive at Nabble.com. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
The biggest help would come by not pretending to be Albert Einstein. hTh, Jeff On Fri, Jul 24, 2009 at 1:11 AM, Albert EINstEIN<sateeshvarmap at gmail.com> wrote:> > > Hi everybody, > > 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? > Could somebody help me out in this aspect,plz? Any help would be > appreciated. > > Thanks in advance. > -- > View this message in context: http://www.nabble.com/How-to-create-a-permanent-dataset-in-R.-tp24639146p24639146.html > Sent from the R devel mailing list archive at Nabble.com. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
(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
>>> Liviu Andronic <landronimirc at gmail.com> 07/24/09 7:06 PM >>> >.. use save.image() to save R's workspace and re-load it when > re-opening R via load().Or you could just use save.image in your default directory for R and R will then open it automatically. I'd use that sparingly though; it is not always a blessing to have old data hanging about... ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}
Hi, Thanks for your valuable reply. can you provide me some more information regarding . Here we are reloading the data when we start the R, In R there are some default packages with datasets can we create a dataset permanently in any packages so that we can get the dataset without reloading,like creating dataset in a permanent library in SAS . can we create our own packages in R. It would be very helpful for us, if you provide any information regarding this. Thanks for your reply in advance -- View this message in context: http://www.nabble.com/How-to-create-a-permanent-dataset-in-R.-tp24639146p24673895.html Sent from the R devel mailing list archive at Nabble.com.
>>>>> "AE" == Albert EINstEIN <sateeshvarmap at gmail.com> >>>>> on Sun, 26 Jul 2009 22:50:14 -0700 (PDT) writes:PLEASE! These are typical quesions of R beginners. They do *NOT* belong to the R-devel mailing list, but rather to R-help (and even then: PLEASE do read the posting guide http://www.R-project.org/posting-guide.html ) Again: do *NOT* misuse R-devel with such questions. They do not belong here at all. Martin <Maechler at stat.math.ethz.ch> AE> Hi, Thanks for your valuable reply. can you provide me AE> some more information regarding . Here we are reloading AE> the data when we start the R, In R there are some AE> default packages with datasets can we create a dataset AE> permanently in any packages so that we can get the AE> dataset without reloading,like creating dataset in a AE> permanent library in SAS . AE> can we create our own packages in R. It would be very AE> helpful for us, if you provide any information regarding AE> this. AE> Thanks for your reply in advance -- View this message in AE> context: AE> http://www.nabble.com/How-to-create-a-permanent-dataset-in-R.-tp24639146p24673895.html AE> Sent from the R devel mailing list archive at AE> Nabble.com. AE> ______________________________________________ AE> R-devel at r-project.org mailing list AE> https://stat.ethz.ch/mailman/listinfo/r-devel
On 7/27/09, Albert EINstEIN <sateeshvarmap at gmail.com> wrote:> can we create our own packages in R. It would be very helpful for us, if > you provide any information regarding this. >Yes. See this [1]. Liviu [1] http://cran.r-project.org/doc/manuals/R-exts.pdf
Apparently Analagous Threads
- How to create a permanent dataset in R.
- storing output in html or pdf table format.
- create dataset permanently in package (i.e. default or our own package)
- read.ssd {foreign} (Reading a permanent SAS dataset into an R data frame)
- R Packages and Permanent Datasets creation