Type: | Package |
Title: | A Wrapper for the API of the Danish Parliament |
Version: | 1.0 |
Author: | Mikkel Freltoft Krogsholm |
Maintainer: | Mikkel Freltoft Krogsholm <mikkel@56n.dk> |
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. |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
LazyData: | true |
Depends: | R (≥ 2.10) |
Imports: | httr, pbapply, purrr, dplyr, tibble |
RoxygenNote: | 6.0.1 |
URL: | https://github.com/mikkelkrogsholm/ftDK |
BugReports: | https://github.com/mikkelkrogsholm/ftDK/issues |
NeedsCompilation: | no |
Packaged: | 2017-06-21 06:57:21 UTC; mikkel |
Repository: | CRAN |
Date/Publication: | 2017-06-21 15:23:18 UTC |
The API endpoints at the Danish Parliament
Description
A vector containing the endpoints for the API.
Usage
api_endpoints
Format
A vector
Source
http://www.ft.dk/dokumenter/aabne_data/
Get data from the API
Description
Get data from the API
Usage
get_ft(endpoint)
Arguments
endpoint |
is the endpoint in the API that you want data from. |
Value
a data frame with the data requested
Examples
## Not run:
library(ftDK)
see_endpoints()
ft_data <- get_ft("afstemning")
ft_data
## End(Not run)
Turns NULL values in a list into NAs.
Description
Turns NULL values in a list into NAs.
Usage
null_to_na(mylist)
Arguments
mylist |
is a list, where the NULL values are to be turned into NAs. |
See the available endpoints in the API
Description
See the available endpoints in the API
Usage
see_endpoints()
Value
A vector of possible endpoints
Examples
library(ftDK)
see_endpoints()