I have two data.frames:
frame1 <- data.frame(dia=c("02/01/2017","03/01/2017","04/01/2017","05/01/2017"), y=c(2,2,1,2),w=c(4,4,2,2),z=c(25,16,24,30), k=c("sim","nao","sim","nao"))
frame2 <- data.frame(dia=c("05/01/2017","04/01/2017","03/01/2017","02/01/2017"), v1=c(1000,2000,3000,4000))
How do I join the second data.frame to the first? Do I need to leave the dates in the same order in both data.frames before joining them?
I tried to use the rbind
function, but it did not work.