[R] empty array

Christophe Genolini cgenolin at u-paris10.fr
Sat Mar 15 16:33:32 CET 2008


Hi the list

Is it possible to create an empty matrix ? I do not mean an matrix with 
a single value that is NA (which is not empty) but a real empty one, 
with length=0.

I do not understand why we have length(numeric()), length(factor()) and 
length(character()) to zero, and length(array()) to one... Any rason for 
that ?

Thanks

Christophe



More information about the R-help mailing list