Skip to content
Prev 131282 / 398503 Next

Dimension of a vector

On Wed, 5 Dec 2007, maj at stats.waikato.ac.nz wrote:

            
No.  A one-dimensional array and a vector are not the same thing.
There are subtle differences, such as what names() means (see ?names).

That a 1D array and a vector _print_ in the same way does occasionally 
lead to confusion, but then you also cannot tell from your printout that A 
has type "integer" and not "double".