Skip to content
Prev 76513 / 398502 Next

Newbie help on dim

Chuck Cleland wrote:

            
NO!!! The help page is correct!

The *value* is either NULL *or* a vector of mode integer.
It is always NULL for any vector without dim attribute (also for 
character vectors!):

  x <- "a"
  dim(x) # NULL
  dim(x) <- 1
  dim(x) # 1

Uwe Ligges