r data structures
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