From adrian_d at eskimo.com  Fri Nov 30 21:55:06 2007
From: adrian_d at eskimo.com (adrian_d at eskimo.com)
Date: Fri, 30 Nov 2007 21:55:06 +0100 (CET)
Subject: [Rd] dataframe does not expand as.Dates objects (PR#10481)
Message-ID: <20071130205506.1B43F282EFF6@mail.pubhealth.ku.dk>

Full_Name: Adrian Dragulescu
Version: 2.6.0
OS: Windows
Submission from: (NULL) (216.99.178.65)


>   data.frame(x=1:10, y="A")  # expands fine
    x y
1   1 A
2   2 A
3   3 A
4   4 A
5   5 A
6   6 A
7   7 A
8   8 A
9   9 A
10 10 A
> 
>   data.frame(x=1:10, z=as.Date("2007-01-01"))  # get an error
Error in data.frame(x = 1:10, z = as.Date("2007-01-01")) : 
  arguments imply differing number of rows: 10, 1
>  

I always have to write a "rep" for date objects.  It is not the end of the world
but it would be nice if dates would behave like characters or numbers. 

Thank you.



[Rd] dataframe does not expand as.Dates objects (PR#10481)
adrian_d at eskimo.com