Skip to content

Instantly share code, notes, and snippets.

@pboesu
Created December 11, 2018 12:25
Show Gist options
  • Select an option

  • Save pboesu/d5774dca383220f62248f4648f6a684c to your computer and use it in GitHub Desktop.

Select an option

Save pboesu/d5774dca383220f62248f4648f6a684c to your computer and use it in GitHub Desktop.
library(dplyr)
system.time(df3 <- left_join(select(df1, lat, lon, id, time_hour),
select(df2, lat, lon, var1, var2, time_words),
by = c('lat', 'lon', 'time_hour' = 'time_words')
)
)
#21.37 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment