knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

statnettapi

The goal of statnettapi is to get data from their API

Installation

Install from github using the devtools package.

devtools::install_github("krose/statnettapi")

Examples

This is a basic example which shows you how to solve a common problem:

library(statnettapi)
library(tidyverse)

glimpse(stat_physical_flow(from_date = as.Date("2018-01-17")))
glimpse(stat_primary_reserves_day(local_date = as.Date("2018-01-17")))
glimpse(stat_production_consumption(from_date = as.Date("2018-01-01")))
glimpse(stat_production_consumption_latest_overview())
glimpse(stat_frequency_minute(from_date = as.Date("2018-01-18")))
glimpse(stat_frequency_second(from_date = as.Date("2018-01-18")))
glimpse(stat_physical_flow_map())


krose/statnettapi documentation built on May 16, 2019, 8:11 p.m.