[R] check variables: a Q from a beginner

Martin Maechler maechler at stat.math.ethz.ch
Thu Jan 16 09:38:02 CET 2003


>>>>> "Roger" == Roger Peng <rpeng at stat.ucla.edu>
>>>>>     on Wed, 15 Jan 2003 20:24:07 -0800 (PST) writes:

    Roger> You may want to just try summary(varname) or more likely you want
    Roger> str(varname).

Or combine  ls() and str()  using   ls.str() !

Martin

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><


    Roger> On Wed, 15 Jan 2003, Yan Yu wrote:

    >> HI, all,
    >> How can i check the variables that is currently being loaded..
    >> ls() only list the variable name, but not the summary of the variable,
    >> like the dimension of the variable etc.. Is there a command in R, which
    >> is equivalent to "whos" in matlab, which let me check the variables
    >> currently loaded in Matlab..
    >> also, Does anyone have recommendation on ~a good reference to R..
    >> I could not find the answer to my Q in the documentation included with R
    >> package..
    >> 
    >> thanks,
    >> yan




More information about the R-help mailing list