I have the following list
and data.frame
.
rows_i_need = c(letters)
df1 = data.frame(a=c("a", "b", "c", "e", "f", "g", "i", "j", "k"),
b=rnorm(9, 6, 2),
c=rnorm(9, 12, 3.5),
d=rnorm(9, 8, 3)
)
How can I create a new list of the 'missing rows', so with output list:
missing_rows = c("d", "h", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z")