Description Usage Arguments Examples
df2json
It returns a string that contains an array of objects. There are as many JS objects as there are rows in the data frame. The column names are used as the keys of each object. The objects are separated by newlines.
1 |
df |
input dataframe object |
1 2 3 |
Loading required package: rjson
[1] "[{\"name\":\"a\",\"x\":null,\"y\":10,\"show\":true},\n{\"name\":\"b\",\"x\":2,\"y\":20,\"show\":false},\n{\"name\":\"c\",\"x\":3,\"y\":null,\"show\":true}]"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.