Learn R Programming

toolbox (version 0.1.1)

consolidateList: Group items of a list by name

Description

Group items of a list by name

Usage

consolidateList(x)

Value

A list with items consolidated by name.

Arguments

x

A named list, likely with names repeating for different positions.

Examples

Run this code
consolidateList(list("col1" = "Test", "col2" = "Hello", "col1" = "Repeated Name"))

Run the code above in your browser using DataLab