parse_array: Parse xml node containing array to vector.

Description Usage Arguments Details Value

View source: R/xml_utils.R

Description

Parses XML representation of java array from EPP .xml file.

Usage

1
parse_array(xml_node)

Arguments

xml_node

'xml_node' object representing an array.

Details

Note that the Java XML representation for an array can have omitted array entries. This indicate that that value should be the default value for the type of the array e.g. can get an array of length 5 with only 3 elements in it. For the missing elements we should use default values at their index in the array.

The default values are Java type | R type | Default value int | integer | 0 double | numeric | 0 boolean | logical | FALSE String | character | ""

Value

A vector representing the array.


mrc-ide/specio documentation built on April 15, 2021, 8:37 a.m.