So I have two data sets,
one is US Census data which is saved as data frame "US_Census_county" has columns Year,State,County,Census
and the other is Mass Shooting Data saved as data frame "GVA_MassShooting" which has Year,State,County,num_killed,num_injured.
I want to merge them within R and create a new data frame. I'm in progress of learning R on DataCamp this week so I am still very new to this.
I tried
merge(US_Census_county,GVA_MassShooting,all=TRUE)
but this created a dataframe where I think it was just one on top of the other as when i checked it was NAs for the extra columns