I would like to convert a data frame into a list. See input in Table 1. See the output in Table 2. When you open a list in R from the environment. Name - the following names clus1, clus2... Type - should contain values from column V1 Value - list of length 3
Table 1
V1 V2 V3
clus1 10 a d
clus2 20 b e
clus3 5 c f
Table 2
$`clus1`
[1] "a" "d"
$`clus2`
[2] "b" "e"
$`clus3`
[2] "c" "f"
dput(table1)?