powered by
Converting a vector to a list with names specified.
as.list2(x, name = TRUE, ...)
a vector.
specify the names of list. Setting the names of list as x by default.
Additional parameters provided in the as.list function.
as.list2(c('a', 'b')) as.list2(c('a', 'b'), name = FALSE) as.list2(c('a', 'b'), name = c('c', 'd'))
Run the code above in your browser using DataLab