parse_xml: Prepare xml

Description Usage Arguments Examples

View source: R/parse_xml.R

Description

Prepare xml

Usage

1
parse_xml(.xml_list)

Arguments

.xml_list

xml as_list()

.manual

logical

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# load file.
xml <- (read_xml("test.xml")

# prepare
by_sample <- prepare(.xml = xml)

# make table.
result <- map_dfr(.x = by_sample, .f = parse_xml, .id = "id") %>%
  pivot_wider(names_from = "name", values_from = "value")

## End(Not run)

Hide-Fun/metabarcode documentation built on March 10, 2021, 11:27 p.m.