list_deepest: Transform an object and its elements in a list of lists...

View source: R/list_deepest.R

list_deepestR Documentation

Transform an object and its elements in a list of lists keeping the attributes' structure.

Description

list_deepest receives an object and transforms it and all its elements in a list of lists keeping the original attributes' structure.

Usage

list_deepest(object)

Arguments

object

A list or another object with an attributes' structure.

Details

Return a list of lists using the attributes' structure from the original object.

Examples

rootPath <- system.file(package = "simutils")
xmlFile <- file.path(rootPath, "extdata/input_files", "simulation.xml")
xmlObject <- xml2::as_list(xml2::read_xml(xmlFile))
list_deepest(xmlObject)


bogdanoancea/simutils documentation built on April 4, 2022, 2:58 p.m.