将元素列表转换为列表列表的有效方法是什么,每个列表中只有一个元素。请参阅下面的示例数据:
#This vector (but with many more elements) I'd like to turn into a list of list with one element in each.
vector <- c("element1", "element2", "element3")
# It should look like this:
list_vector <- list("element1", "element2", "element3")
#This is old: and not really how I want it:
list_vector <- list(list("element1"), list("element1"), list("element1"))
提前致谢