Re: [R] Empty data frame

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Thu, 7 Feb 2008 08:59:25 -0200

Try this:

do.call(data.frame, as.list(paste("var", 1:30, sep=".")))

On 07/02/2008, Jarosław Jasiewicz <jarekj_at_amu.edu.pl> wrote:
> Hi
> Sorry for banal question
> How to create empty data frame with for example 30 variables without
> typying: data.frame(x=1,y=1....)
> Jarek
>
> ______________________________________________
> 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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
______________________________________________
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 Thu 07 Feb 2008 - 11:19:07 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 Thu 07 Feb 2008 - 11:30:12 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