xml_to_json: xml_to_json

Description Usage Arguments Value Examples

View source: R/nexld.R

Description

Convert an NeXML file into a json file/string

Usage

1

Arguments

x

path to a nexml file

file

output filename; optional, if ommitted will return JSON string

Value

json string or json output file

Examples

1
2
3
4
5
ex <- system.file("extdata/example.xml", package = "nexld")
xml_to_json(ex)

ex1 <- system.file("extdata/ontotrace.xml", package = "nexld")
xml_to_json(ex1)

cboettig/nexld documentation built on Sept. 18, 2019, 7:11 a.m.