length(x), x a vector, matrix, or array or any other type of variable. |

length(x) computes the total number of elements in the vector, matrix, or array x. The value of length(x) is prod(dim(x)). If x is a NULL variable, length(x) = 0. If x is a GRAPH variable or a macro, length(x) = 1. If x is a structure, length(x) is a structure. If xi is component i of x, the component i of length(x) has the same component name and value length(xi). See also topics dim(), ndims(), ncomps(), 'NULL', 'graphs'.

Gary Oehlert 2003-01-15