write.json.stat: Write a px object in JSON-stat format.

write.json.statR Documentation

Write a px object in JSON-stat format.

Description

This function writes a object of class px to a file conforming the JSON-stat standard, a simple lightweight JSON dissemination format best suited for data visualization, mobile apps, or open data initiatives.

Usage

write.json.stat(obj.px, filename)

Arguments

obj.px

the name of a objest of class px

filename

the name of the json-stat file to be created (suggested extension, .json)

Author(s)

Carlos J. Gil Bellosta

References

https://json-stat.org/

See Also

write.px

Examples

## Not run: 
  opx1 <- read.px(system.file( "extdata", "example.px", package = "pxR"))
  write.json.stat(opx1, file = "opx.px")

## End(Not run)

pxR documentation built on Nov. 23, 2022, 9:06 a.m.