Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAmySGM5Dd+mve-qj3v4YYSwCOeoqvQzXnompKHXRG33h5UReg@mail.gmail.com>
Date: 2012-08-16T20:59:35Z
From: R. Michael Weylandt
Subject: r data structures
In-Reply-To: <254941237.10401240.1345150255914.JavaMail.root@neo.tamu.edu>

On Thu, Aug 16, 2012 at 4:50 PM, Schumacher, Jay S <jays at neo.tamu.edu> wrote:
>
> are these correct/accurate/sensible statements:
>
>   a vector is a one dimensional object.
>   a matrix is a two dimensional object.
>
>   a list is a one dimensional object.
>
> i'm working from this web page:    http://www.agr.kuleuven.ac.be/vakken/statisticsbyR/someDataStructures.htm
>

I would say not (personally) -- not everything has a dimension in R
(everything does have a length though). To wit,

x <- 1:4

is.vector(x) # TRUE
dim(x) # NULL
length(dim(x)) # 0

Michael