Is there a base function to transform a named vector (with some repeated labels) into a list with each entry being on of the labels instead of using this combination ? MWE:
> v = 1:10
> names(v) = sample(letters[1:5], 10, replace = T)
> lapply(lapply(split(as.list(v), names(v)), unlist), unname)
$c
[1] 4 5 9
$d
[1] 2 3 6 7 8
$e
[1] 1 10