I have a large table with 50,000 rpm. The following mimics the structure:
ID <- c(1,2,3,4,5,6,7,8,9) a <- c("A","B",NA,"D","E",NA,"G","H","I") b <- c(11,2233,12,2,22,13,23,23,100) c <- c(12,10,12,23,16,17,7,9,7) df <- data.frame(ID ,a,b,c)
Where there are some missing values ββfor the vector "a". However, I have several tables that include the identifier and the missing rows:
ID <- c(1,2,3,4,5,6,7,8,9) a <- c("A","B","C","D","E","F","G","H","I") key <- data.frame(ID,a)
Is there a way to include the missing rows from the key in column a using an identifier?