Skip to contents

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.

Usage

read_stats(file)

Arguments

file

A string specifying the path to the tidystats data file.

Examples

# A simple example, assuming there is a file called 'statistics.json'
if (FALSE) { # \dontrun{
statistics <- read_stats("statistics.json")
} # }

# A working example
statistics <- read_stats(
  file = system.file("statistics.json", package = "tidystats")
)