[R] r data structures
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Aug 16 22:59:35 CEST 2012
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
More information about the R-help
mailing list