Try this: do.call(data.frame, as.list(paste("var", 1:30, sep=".")))
On 07/02/2008, Jarosław Jasiewicz <[EMAIL PROTECTED]> 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@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@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.