Learn R Programming

pxR (version 0.42.7)

write.json.stat: 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

Carlos J. Gil Bellosta

References

https://json-stat.org/

See Also

write.px

Examples

Run this code
if (FALSE) {
  opx1 <- read.px(system.file( "extdata", "example.px", package = "pxR"))
  write.json.stat(opx1, file = "opx.px")
}

Run the code above in your browser using DataLab