Package 'ftDK'

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: 2025-02-24 02:46:37 UTC
Source: https://github.com/mikkelkrogsholm/ftdk

Help Index


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()