[R] empty array
John Kane
jrkrideau at yahoo.ca
Sat Mar 15 17:28:23 CET 2008
Will
mymatrix <- NULL do what you want?
--- Christophe Genolini <cgenolin at u-paris10.fr> wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>
More information about the R-help
mailing list