Vlookup and Count String Occurrences in Separate Table R to new Column
问题 I have two data frames. Below are samples but should be easily reproducible for illustration. df1 <- data.frame(School = c("Omaha South", "Omaha Central", "Grand Island"), Enrollment = c(2166, 2051, 1982)) df2 <- data.frame('Away Score' = c(25, 57, 76), 'Away Team' = c("Omaha South", "Omaha Central", "Grand Island"), 'Away Score' = c(52, 88, 69), 'Away Team' = c("Omaha Central", "Grand Island", "Omaha South"), Date = c("1/11/2020", "1/12/2020", "1/13/2020"), Winner = c("Omaha Central", "Grand