s-news
[Top] [All Lists]

Re: [S] Command for displaying structure and contents of data frames

To: Paul Schwarz <Paul.Schwarz@cornell.edu>
Subject: Re: [S] Command for displaying structure and contents of data frames
From: Christian Keller <ckeller@aicos.com>
Date: Mon, 27 Apr 1998 08:01:43 +0200
Cc: S-news <s-news@wubios.wustl.edu>
Organization: AICOS Technologies AG (http://www.aicos.com)
References: <3.0.2.32.19980427000551.006ba4a4@postoffice.mail.cornell.edu>
Sender: owner-s-news@wubios.wustl.edu
Paul Schwarz <Paul.Schwarz@cornell.edu> wrote:
>> I've been searching for a command that will display the structure 
>> and contents of a data frame similar to the information displayed 
>> by the object browser in S-PLUS 4.x.  For example, with the object
>> browser, if you click on a data frame in the left pane, the names 
>> of the variables and whether they're doubles, factors, etc. are
>> displayed in the right pane.  Is there a command-line equivalent to
>> display this kind of information?  I thought that objects.summary()
>> might do it, but it doesn't seem to display the contents of a
>> particular data frame.

I would recommend you to use the function 'str' which is available 
from Statlib (http://lib.stat.cmu.edu/S/)
  str: Compactly print STRucture of any S object. S function 'str',
       help, utilities and examples. 
       Martin Maechler (maechler@stat.math.ethz.ch) [11/Mar/94]
       [29/Nov/94][24/Mar/97] (35k) 

It does (nearly) everything what you want. I'm sure you will love it.
-- Christian 
----------------------------------------------------------
Christian Keller                Tel:      +41 61 686 98 81
AICOS Technologies AG           Fax:      +41 61 686 98 88
Efringerstrasse 32              email:   ckeller@aicos.com
CH-4057 Basel, Switzerland      Web: http://www.aicos.com/
----------------------------------------------------------
-----------------------------------------------------------------------
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>