Skip to content
Prev 79501 / 398502 Next

peculiar matrices

The reference manual of 2.2.0 says in section
2.2 that "Matrices and arrays are simply vectors
with the attribute dim and optionally dimnames."

Now earlier in section 2.1 it discusses vectors
and I think that that is where the confusing part lies.
Section 2.1 starts out saying that "Vectors
can be thought of as contiguous cells containing
homogeneous data." and that "R has six basic
('atomic') vector types: logical, integer, real,
complex, string (or character) and raw".   There
is no inkling yet that this is an incomplete
thought.

Its only later in the section that we find out that
atomic vectors are only one sort of vector: "Lists
are vectors, and the basic vector types are
referred to as atomic vectors where it is
necessary to exclude lists."

I think this section should be rewritten to
clearly state up front that there are atomic
vectors and generic vectors and then define each
of these.
On 10/21/05, Ben Bolker <bolker at ufl.edu> wrote: