```
df = data.frame(variables = c('a', 'b', 'c', 'c'),
values = c(1, 2, 3, 4),
dates = c(6, 6, 6, 6))
# What df looks like
df
# variables values dates
#1 a 1 6
#2 b 2 6
#3 c 3 6
#4 c 4 6
###
# Output 1
df |>
pivot_wider.(names_from = variables,
values_from = values,
values_fill = NA,
values_fn = list)
# dates a b c
# 6 1 2 c(3,4)
###
# Output 2
df |>
pivot_wider.(names_from = variables,
values_from = values,
values_fill = NA)
# dates a b c
# 6 1 1 2
# Where do b = 1 and c = 2 come from???
```

Neither of these outputs make sense. This is my desired output:

```
# dates a b c
# 6 1 2 3
# 6 1 2 4
```

How can I make this possible?