I have the following sample data:
set.seed(8760)
ID <- c(rep(1:4, each = 6))
i <- paste(rep(LETTERS[1:6], times=4))
value <- sample(1:10000, 24)
input <- data.frame(k, i, value)
wf <- data.frame("ID"=unique(k), "WF"=sample(1:365, 4))
I just can't find an efficient way to extend my input dataframe with a column that comprises of wf-values corresponding to each rows ID. Would someone help on that one?
Thanks in advance, BenR