> data.frame(a = character(0), b = double(0))
[1] a b
<0 rows> (or 0-length row.names)


On Feb 7, 2008 5:48 AM, 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
______________________________________________
[email protected] 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.

Reply via email to