title: Two (supposedly) identical date objects in R are not equal?
body: <p>I have a simple question. I have two Date objects in R that are supposed to be identical (they have the same value and class), but R is saying they are not equal. I am running on linux though I get the same result on a windows machine. Why is this happening? </p>
  
  <p>code:</p>
  
  <pre><code>start=as.Date("2014-12-31")
  finish=as.Date("2014-11-28")
  dates = seq(start,finish,length=6)
  christmasEve = as.Date("2014-12-24")
  print(dates[2])
  print(christmasEve)
  print(class(dates[2]))
  print(class(christmasEve))
  (christmasEve==dates[2])
  </code></pre>
  
  <p>output: </p>
  
  <pre><code>[1] "2014-12-24"
  [1] "2014-12-24"
  [1] "Date"
  [1] "Date"
  [1] FALSE
  </code></pre>
  
  <p>Any help would be greatly appreciated!</p>
  
  <p>-Paul</p>