s-news
[Top] [All Lists]

[S] The str function and Splus5

To: s-news@wubios.wustl.edu
Subject: [S] The str function and Splus5
From: Matt Calder <calder@phz.com>
Date: Fri, 22 Sep 2000 14:21:11 -0400 (EDT)
Cc: maechler@stat.math.ethz.ch
In-reply-to: <GJEHIBCNJMMJCAIJDCMKOEIFCAAA.jpkabosk@midway.uchicago.edu>
Sender: owner-s-news@wubios.wustl.edu

        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

<Prev in Thread] Current Thread [Next in Thread>
  • [S] avas code, Joseph P. Kaboski
    • [S] The str function and Splus5, Matt Calder <=