read_stats | R Documentation |
write_stats()
read_stats()
can read a .json file containing statistics that was produced
using tidystats. It returns a list containing the statistics, with the
identifier as the name for each list element.
read_stats(file)
file |
A string specifying the path to the tidystats data file. |
# A simple example, assuming there is a file called 'statistics.json'
## Not run:
statistics <- read_stats("statistics.json")
## End(Not run)
# A working example
statistics <- read_stats(
file = system.file("statistics.json", package = "tidystats")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.