yes, thank you, conceptual model (rather than formal dimension attribute) is where i'm coming from at this point.
----------------------------------------
It would be helpful to distinguish between a formal dimension attribute,
and a (personal) conceptual model of whether or not any particular R
object, or type of object, has dimension. Mention of data frames having
dimension can be found in the help page for the dim() function.
[1] 2
Conceptually, I would consider data frames to have two dimensions (rows
and columns). They do not have a formal "dim" attribute, but the dim()
function does return a value.
I personally do not think of lists as having dimension -- I never ask
myself, what is the dimension of a list? But I do often enquire as to the
length of a list, so might, if forced to, admit that lists have one
dimension, length. But I do not think it is helpful to think of lists as
having dimension. Certainly, lists do not have two dimensions.
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 8/16/12 11:49 AM, "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."
> 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?
>thanks,
> jay s
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.