[R] R equivalent to MATLAB's "whos" Command?

David Winsemius dwinsemius at comcast.net
Tue Mar 10 22:57:00 CET 2009


Learn to use R-search.

http://search.r-project.org/nmz.html

The obvious search strategy, ls size, seemed effective.

--  

On Mar 10, 2009, at 5:29 PM, Jason Rupert 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/ref/who.html
> 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 <jorgeivanvelez at gmail.com>  
> wrote:
>
>> From: Jorge Ivan Velez <jorgeivanvelez at gmail.com>
>> Subject: Re: [R] R equivalent to MATLAB's "whos" Command?
>> To: jasonkrupert at yahoo.com
>> Cc: R-help 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
>> <jasonkrupert 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'
>>>
>>>
>>>

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list