For example, I now have a dataframe
data = cbind(id = c(1,1,2,2,3,3),
value = c('a', '','b', '', 'a', ''))
I want to expand things in the value column based on the column id. Something like this, where when id is 1, value will all be 'a':
data = cbind(id = c(1,1,2,2,3,3),
value = c('a', 'a','b','b','a','a'))
Thank you!