Message-ID: <CAHA9McO-eG4qt25kzPnziwUKw5eF1+g7wq0t5Ux=n8cRhDFyCA@mail.gmail.com>
Date: 2012-08-16T19:28:03Z
From: Steve Lianoglou
Subject: r data structures
In-Reply-To: <1394260557.10351468.1345142964857.JavaMail.root@neo.tamu.edu>
Hi,
On Thu, Aug 16, 2012 at 2:49 PM, Schumacher, Jay S <jays at neo.tamu.edu> wrote:
>
>
> hi,
> i'm trying to understand r data structures. i see that vectors, matrix, factors and arrays have a "dimension."
Out of curiosity, where do you "see" that vectors and factors have a
dimension? I mean -- I guess they're one dimensional, but ...
> there seems to be no mention of dimensionality anywhere for lists or dataframes. can i consider lists and frames to be of fixed dimension 2?
data.frames: sure, I guess
lists: no
What would you consider the dimension of this list to be:
x = list(a=1:10, b='hello', c=matrix(1:100, nrow=10))
-steve
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact