[R] Empty data frame
Jarosław Jasiewicz
jarekj at amu.edu.pl
Thu Feb 7 12:34:11 CET 2008
Gabor Grothendieck pisze:
>> 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 <jarekj w 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
>>
thanks but it is not what I need the problem is with 30 variables: I'd
like to avoid typing (a=double(0), b=double(0)) etc... thirty times
More information about the R-help
mailing list