[Rd] dataframe does not expand as.Dates objects (PR#10481)
adrian_d at eskimo.com
adrian_d at eskimo.com
Fri Nov 30 21:55:06 CET 2007
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.
More information about the R-devel
mailing list