I have the following two data.frame. I want to get the Grade from D1 and Assign to the Pts in D. Once the operations completes the D data.frame should have a columns for Pts,Val, and Grade without C or Good Grade.
D <- data.frame(Pts= c("A","B","D"), Val = c(3.5,4,5))
D1 = data.frame(Pts = c("A","B","C", "D"), Grade = c("Ugly", "Bad", "Good", "Excellent"))
D$Grade <- D1$Grade