Re: [R] Data frame with 0 rows.

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue, 19 Feb 2008 23:42:05 -0500

Check out this thread:

https://stat.ethz.ch/pipermail/r-help/2008-February/153638.html

On Feb 19, 2008 10:47 PM, Rolf Turner <r.turner_at_auckland.ac.nz> wrote:
>
> For reasons best known only to myself ( :-) ) I wish to create a data
> frame with 0 rows and 9 columns.
>
> The best I've been able to come up with is:
>
> junk <- as.data.frame(matrix(0,nrow=0,ncol=9))
>
> Is there a sexier way?
>
> cheers,
>
> Rolf
>
> ######################################################################
> Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
>
> ______________________________________________
> 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 Wed 20 Feb 2008 - 05:51:22 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 Wed 20 Feb 2008 - 06:30:15 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