compare - Subtracting r objects of class 'times' -
i have 2 objects of class 'times' generated using chron trying compare. on surface identical: > str(x) class 'times' atomic [1:6] 0.04444 0.05417 0.05486 0.00208 0.01111 ... ..- attr(*, "format")= chr "h:m:s" > str(y) class 'times' atomic [1:6] 0.04444 0.05417 0.05486 0.00208 0.01111 ... ..- attr(*, "format")= chr "h:m:s" so expected x - y = 0 or x==y return true, not case: > x-y [1] -6.245005e-17 -2.775558e-17 -2.775558e-17 7.372575e-18 -7.112366e-17 0.000000e+00 > x==y [1] false false false false false true any idea going on or how can compare two? tried changing posixct , works, before comparing, have operations on data frame columns data comes (adding , subtracting), can't done posixct. also, requires steps , meant quick check see if there discrepencies in data. i guess can use as.character(x)==as.character(y), , works, there has more elegant way...