I think I have a relatively simple problem but cannot figure out how to solve it. I have the following data frame:
a <- c("A","B","C","C","D","D","E")
b <- c(1,2,3,4,5,6,7)
c <- data.frame(a,b)
Now I want to have a new dataframe listing all values of b in on cell like this
A;1
B;2
c;3,4
D;5,6
E;7
Can anyone point me in the right direction? I was looking at ddply with one column for max(b) and another for min(b) and then paste the columns together but it gives me the error:
Error in .fun(piece, ...) : argument is missing, with no default