View source: R/flatten_deepest.R
flatten_deepest | R Documentation |
list
into
a list of lists with this final nodes as different elements (e.g:
character
).flatten_deepest
receives a list of lists with final nodes
as list
and transforms it into a list of lists with final nodes as
different elements, for example, as character
class; keeping the
names and attributes' structure.
flatten_deepest(list)
list |
A |
Return a list
of list
s with final nodes as different
classes (character
, integer
, ...) keeping the original names'
structure.
rootPath <- system.file(package = "simutils") xmlFile <- file.path(rootPath, "extdata/input_files", "simulation.xml") xmlObject <- xml2::as_list(xml2::read_xml(xmlFile)) flatten_deepest(xmlObject)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.