I have a proposal that foreign policy has less vetos and overrides than domestic policy and have collated data from congress.gov. I have two separate csv files one for foreign and one for domestic. I need a way to give both a variable for being either domestic and foreign easily as I have 1500 results all-together. And then merge the two probably in R. Also both files have identical columns currently.
This is what I have tried:
data1 <- read.csv("(DP.csv")
data2 <- read.csv("(FP.csv")
newdata = merge(data1, data2)
But this returns 242 obs. of previously 1156 obs. (data1) and 509 obs. (data2).