I need to reshape date from long to wide that has non-categorical values
and not the same number of values.

An example of a dataframe:

```
df_long <- as.data.frame(cbind(c("id A",  "b",    "b",    "d",    "d","id B", "kh",   "kk",   "ip", "id C", "99", "id D", "id E"),c(1,1,1,1,1, 2,2,2,2,3,3,1,1)))

```

I need this:

```
df_wide <- as.data.frame(rbind(c("id A", "b", "b", "d", "d"), c("id B", "kh", "kk", "ip", ""), c("id C", "99", "", "", ""), c("id D", "", "", "", ""), c("id E", "", "", "", "")))

```

I don't know how to reshape this since values are not categorical and not every id has the same number of values.

So I was wondering about reshaping both from long to wide and wide to long of such data.

Thank you for your help!