get_work: Get data from the Flemish parliament

View source: R/main_script.R

get_workR Documentation

Get data from the Flemish parliament

Description

Get data from the Flemish parliament

Usage

get_work(
  date_range_from,
  date_range_to,
  fact = "debates",
  type = "details",
  plen_comm = "plen",
  use_parallel = TRUE,
  raw = FALSE,
  extra_via_fact = FALSE,
  two_columns_pdf = FALSE
)

Arguments

date_range_from

The start date, should be in format "yyyy-mm-dd".

date_range_to

The end date, should be in format "yyyy-mm-dd".

fact

Which fact should be returned, options include "written_questions", "debates", "oral_questions_and_interpellations", "parliamentary_initiatives" or "committee_hearings"

type

Type of data to be returned, options include "document", "speech" or "details".

plen_comm

Switch to pick between plenary (plen) and commission (comm) sessions.

use_parallel

Boolean: should parallel workers be used to call the API?

raw

Boolean: should the raw object be returned?

extra_via_fact

Boolean: also search the underlying endpoint for linked documents? This may return documents not linked to the specific meeting, thus may also include meetings on dates before/after the date range.

two_columns_pdf

Boolean: Use when you encounter two-colummned PDFs.

Examples

## Not run: 

get_work(
  date_range_from = "2022-01-20",
  date_range_to = "2022-01-31",
  type = "document",
  fact = "written_questions",
  use_parallel = TRUE
)

## End(Not run)

PolscienceAntwerp/Flempar documentation built on Jan. 3, 2025, 4:03 p.m.