Re: [R] Reset R environment through R command

2010-07-29 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Ralf B > Sent: Thursday, July 29, 2010 10:27 AM > To: r-help@r-project.org > Subject: Re: [R] Reset R environment through R command > > With envi

Re: [R] Reset R environment through R command

2010-07-29 Thread Stefan Grosse
Am Donnerstag, den 29.07.2010, 13:22 -0400 schrieb Ralf B: > Is it possible to remove all variables in the current environment > through a R command. > > Can one do that in R? see ?rm __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/li

Re: [R] Reset R environment through R command

2010-07-29 Thread Henrique Dallazuanna
rm(list = ls(all = TRUE)) On Thu, Jul 29, 2010 at 2:26 PM, Ralf B wrote: > With environment I actually meant workspace. > > On Thu, Jul 29, 2010 at 1:22 PM, Ralf B wrote: > > Is it possible to remove all variables in the current environment > > through a R command. > > > > Here is what I want:

Re: [R] Reset R environment through R command

2010-07-29 Thread Ralf B
With environment I actually meant workspace. On Thu, Jul 29, 2010 at 1:22 PM, Ralf B wrote: > Is it possible to remove all variables in the current environment > through a R command. > > Here is what I want: > > x <- 5 > y < 10:20 > reset() > print(x) > print(y) > > Output should be NULL for x an

[R] Reset R environment through R command

2010-07-29 Thread Ralf B
Is it possible to remove all variables in the current environment through a R command. Here is what I want: x <- 5 y < 10:20 reset() print(x) print(y) Output should be NULL for x and y, and not 5 and 10:20. Can one do that in R? Best, Ralf __ R-help