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

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Tue Mar 10 22:28:50 CET 2009


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




More information about the R-help mailing list