Description Usage Author(s) Examples
toJSON converts an R data frame to an object with key value pairs for each column. However, a lot of javascript charting libraries need an array of objects, one for each row of the data frame. This utility function does that.
1 | toJSONArray(obj, json = TRUE)
|
Ramnath Vaidyanathan
1 2 3 4 | ## Not run:
toJSONArray(head(iris))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.