[R] Empty data frame

Henrique Dallazuanna wwwhsd at gmail.com
Thu Feb 7 11:59:25 CET 2008


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


More information about the R-help mailing list