Skip to content
Back to formatted view

Raw Message

Message-ID: <49B6DB92.7070805@idi.ntnu.no>
Date: 2009-03-10T21:28:50Z
From: Wacek Kusnierczyk
Subject: R equivalent to MATLAB's "whos" Command?
In-Reply-To: <351352.8012.qm@web56002.mail.re3.yahoo.com>

Jason Rupert wrote:
> ? 
> By any chance is there an R equivalent to MATLAB's "whos" command?
>   



    whos = function(envir=parent.frame())
       print(sapply(ls(envir=envir), USE.NAMES=TRUE, get, envir=envir))

or simply

    whos = ls.str

and

    x = 1
    y = 2

    whos()


vQ