as.list2: vector to list

View source: R/utils.R

as.list2R Documentation

vector to list

Description

Converting a vector to a list with names specified.

Usage

as.list2(x, name = TRUE, ...)

Arguments

x

a vector.

name

specify the names of list. Setting the names of list as x by default.

...

Additional parameters provided in the as.list function.

Examples

as.list2(c('a', 'b'))

as.list2(c('a', 'b'), name = FALSE)

as.list2(c('a', 'b'), name = c('c', 'd'))


xefun documentation built on Aug. 10, 2023, 5:07 p.m.