flatten_list_of_lists {yum}R Documentation

Flatten a list of lists to a list of atomic vectors

Description

This function takes a hierarchical structure of lists and extracts all atomic vectors, returning one flat list of all those vectors.

Usage

flatten_list_of_lists(x)

Arguments

x

The list of lists.

Value

A list of atomic vectors.

Examples

### First create a list of lists
listOfLists <-
  list(list(list(1:3, 8:5), 7:7), list(1:4, 8:2));
yum::flatten_list_of_lists(listOfLists);

[Package yum version 0.1.0 Index]