R equivalent to MATLAB's "whos" Command?
I saw this in http://groups.google.com.au/group/r-help-archive/browse_thread/thread/7dca300a7fde5286/718dc5f1405618c9?lnk=gst&q=sort(+sapply(ls()%2Cfunction(x){object.size(get(x))}))#718dc5f1405618c9 The command is something like sort( sapply(ls(),function(x){object.size(get(x))})) very useful, so I have added it to my .First function
On Mar 11, 8:29?am, Jason Rupert <jasonkrup... at yahoo.com> wrote:
Wow. ?Thank you for your quick response. ?However, I'm looking for an R command that lists what is currently in the R workspace. Here is a link to a description of the MATLAB "whos" command:http://www.math.carleton.ca/old/help/matlab/MathWorks_R13Doc/techdoc/... Essentially, it does the following: "who lists the variables currently in the workspace. whos lists the current variables and their sizes and types. It also reports the totals for sizes. who('global') and whos('global') list the variables in the global workspace " --- On Tue, 3/10/09, Jorge Ivan Velez <jorgeivanve... at gmail.com> wrote:
From: Jorge Ivan Velez <jorgeivanve... at gmail.com> Subject: Re: [R] R equivalent to MATLAB's "whos" Command? To: jasonkrup... at yahoo.com Cc: R-h... at r-project.org Date: Tuesday, March 10, 2009, 4:14 PM Dear Jason, How about this?
?ls() ls()
HTH,
Jorge
On Tue, Mar 10, 2009 at 5:05 PM, Jason Rupert <jasonkrup... at yahoo.com>wrote:
By any chance is there an R equivalent to MATLAB' "whos" command? I tried searching R and R-seek, but didn't really come up with anything. There are several items I would like to make sure are stored in the workspace and check their values. ?Thank you again for your help and any feedback.
?workspace
No documentation for 'workspace' in specified
packages and libraries:
you could try '??workspace'
??workspace
No help files found with alias or concept or title
matching using fuzzy matching.
??whos
No help files found with alias or concept or title
matching using regular expression matching.
??whos
No help files found with alias or concept or title
matching using regular expression matching.
?whos
No documentation for 'whos' in specified
packages and libraries:
you could try '??whos'
? ? ? ?[[alternative HTML version deleted]]
______________________________________________ R-h... 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.
______________________________________________ R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.