Skip to content

dataframe does not expand as.Dates objects (PR#10481)

1 message · Adrian Dragulescu

#
Full_Name: Adrian Dragulescu
Version: 2.6.0
OS: Windows
Submission from: (NULL) (216.99.178.65)
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
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.