INNER JOINs in R are accomplished with merge
. There is no overlap in the unique combinations of your data matching those two columns, but if there were, they would be delivered with:
merge(dat1, dat2, by=c("name", "hour"))
If you want OUTER JOINs (left or right) they can be delivered by specifying all.x or all.y in the merge
call.