I have two data frames with exactly the same columns and I'm trying to concatenate them together using dplyr::union.
union(df.3, df.4)
However, I get the error:
Error: cannot join on columns 'run.time' x 'run.time': Can't join on > 'run.time' x 'run.time' because of incompatible types (difftime / difftime)
Being that the run.time
columns are the same type, why am I getting this error?
class(df.4$run.time)
[1] "difftime"
> class(df.3$run.time)
[1] "difftime"
>
I know I can just use rbind
to do the concatenation, but I was curious why union
doesn't work.