Skip to content

Instantly share code, notes, and snippets.

@yvasiyarov
Created March 7, 2014 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yvasiyarov/9407394 to your computer and use it in GitHub Desktop.
Save yvasiyarov/9407394 to your computer and use it in GitHub Desktop.
R merge csv files
boborders = read.csv("in_data/boborders.csv", TRUE, ",")
gatransactions = read.csv("in_data/Transactions.csv", TRUE, ",")
orderswithgroup <- merge(boborders, gatransactions, by.x = "order_nr", by.y = "Transaction")
write.csv(orderswithgroup, file="out_data/orderswithgroup.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment