Skip to content
Prev 165405 / 398506 Next

Using transform to add a date column to a dataframe

On Tue, 23 Dec 2008, Tom La Bone wrote:

            
What is "T"?  (If you mean 'TRUE', please say so, as "T" is a regular 
variable.)
A Date object is not a vector.  In released versions of R, data.frame() 
only knows how to replicate vectors and factors.

As Gavin pointed out, you were warned so why are you disregarding the 
warning?  That a subclass works does not mean that you are entitled to 
leap to conclusions about another subclass, does it?  Abductive inference 
does not apply (it would be like useRs considering you to be always in 
error based on your email address).