I have looked around a lot but cant figure this one out. I have one data frame that has multiple rows for the same date ( 2014-05-13 date has 15 rows) then I have a data frame 2 with only one value for each date. How can I merge the two and repeat the value from data frame 2 for all repeating date rows?
Using:
master = merge(returns,count_msg, by = "date", all=TRUE)
merges the second data frame but introduces new rows that are NA
for word count. My end goal is to do regression analysis on word count vs. daily returns.