insideOutList: Make a named list inside out

insideOutListR Documentation

Make a named list inside out

Description

Make a named list inside out. Then the elements of the list becomes the names of list, and the names of list becomes its element.

Usage

insideOutList(namedList)

Arguments

namedList

A named list.

Value

A list fliped inside out.

Examples

{
## Not run: 
a = list(a = c("a1", "a2", "a3"),
         b = c("a2", "b1", "b3"),
         d = c("d3", "b1", "a2"))
insideOutList(a)

## End(Not run)
}

paodan/funcTools documentation built on April 1, 2024, 12:01 a.m.