| Title: | A Wrapper for the API of the Danish Parliament |
|---|---|
| Description: | A wrapper for the API of the Danish Parliament. It makes it possible to get data from the API easily into a data frame. Learn more at <http://www.ft.dk/dokumenter/aabne_data>. |
| Authors: | Mikkel Freltoft Krogsholm |
| Maintainer: | Mikkel Freltoft Krogsholm <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.0 |
| Built: | 2026-05-24 08:07:27 UTC |
| Source: | https://github.com/mikkelkrogsholm/ftdk |
A vector containing the endpoints for the API.
api_endpointsapi_endpoints
A vector
http://www.ft.dk/dokumenter/aabne_data/
Get data from the API
get_ft(endpoint)get_ft(endpoint)
endpoint |
is the endpoint in the API that you want data from. |
a data frame with the data requested
## Not run: library(ftDK) see_endpoints() ft_data <- get_ft("afstemning") ft_data ## End(Not run)## Not run: library(ftDK) see_endpoints() ft_data <- get_ft("afstemning") ft_data ## End(Not run)
Turns NULL values in a list into NAs.
null_to_na(mylist)null_to_na(mylist)
mylist |
is a list, where the NULL values are to be turned into NAs. |
See the available endpoints in the API
see_endpoints()see_endpoints()
A vector of possible endpoints
library(ftDK) see_endpoints()library(ftDK) see_endpoints()