Skip to content
Prev 167986 / 398502 Next

Dates in Common

The problem is in the intersect function that does x = as.vector(x) and 
therefore transforms date vector into a numeric .
Try to:
 d1 = as.character(data1) ; d2 = as.character(data2)
 d = intersect(d1, d2)
 data = as.Date(d)

A.
Tom La Bone wrote: