[R] clear workspace
Gavin Simpson
gavin.simpson at ucl.ac.uk
Wed Aug 1 14:30:57 CEST 2007
On Wed, 2007-08-01 at 14:06 +0200, Dong GUO 郭东 wrote:
> Dear all,
>
> How can I clear the workspace, as we do in Matlab "clear all"??
>
> Many thanks in advance.
>
> Dong
?rm
E.g.:
rm(list = ls())
will remove everything shown by ls(). Look at ?ls to see possible
arguments to that function to fine tune this, for example, by default
objects that start with a "." are omitted from the results of ls().
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list