Re: [R] empty array

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Sat, 15 Mar 2008 12:28:23 -0400 (EDT)


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.
>



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. Received on Sat 15 Mar 2008 - 16:40:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 15 Mar 2008 - 17:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive