I am a big fan of the str function, which I obtained from StatLib. Does
anyone know of a version that works with Splus5? Otherwise, is there a similar
function for displaying the structure of objects? For those who don't know of
it, the str function displays the structure of arbitrary objects:
> str(list(x=list(a=1,b=2), y=data.frame(A=c(1,2), B=c(3,4)), z= 7))
List of 3
$ x:List of 2
..$ a: num 1
..$ b: num 2
$ y:`data.frame': 2 obs. of 2 variables:
..$ A: num 1 2
..$ B: num 3 4
$ z: num 7
Thanks,
Matt Calder
calder@phz.com
P.S. For the record, the author is (from the str help file):
AUTHOR:
Martin Maechler, since 1990, currently at
Seminar fuer Statistik, ETH Zurich, Switzerland
maechler@stat.math.ethz.ch
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|