create_udf_node: Create a UDF XML::xmlNode and possibly add it to a parent...

View source: R/Udf.R

create_udf_nodeR Documentation

Create a UDF XML::xmlNode and possibly add it to a parent node

Description

Suppose you have the following UDF attributes and value... x <- c(unit = "uL", type = "Numeric", name = "facs.Padding volume", value = 0.6) Below is the expected appearance of the output ... <udf:field unit="uL" type="Numeric" name="facs.Padding volume">0.6</udf:field>

Usage

create_udf_node(x, namespace = "udf", parent = NULL, ...)

Arguments

x

a named character vector with at least "name", "type" and "unit" elements but it may optionally include a "value" element. If value is not provided then the value in the returned node is empty.

namespace

character, the xmlNamespace for the new xmlNode

parent

optional xmlNode to whom to add the new node

...

further arguments for newXMLNode

Value

udf XML::xmlNode


BigelowLab/genologicsr documentation built on June 7, 2024, 3:15 a.m.