Skip to content

Instantly share code, notes, and snippets.

@joaovissoci
Created October 12, 2015 01:02
Show Gist options
  • Save joaovissoci/c334f3640c9c0c47311b to your computer and use it in GitHub Desktop.
Save joaovissoci/c334f3640c9c0c47311b to your computer and use it in GitHub Desktop.
merge_datasest.R
#######################################################
#MERGING TWO DATASETS IN R
#######################################################
data <- read.csv("")
data2 <- repmis::source_DropboxData(".csv","",sep = ",",header = TRUE)
total <- merge(data,data2,by=c("record_id"),all.x=TRUE)
write.csv(total,"/home/joao/Desktop/hotspot_epi_rwanda_data.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment