deputies_get_data: Getting data about deputies

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/deputies_get_data.R

Description

Function deputies_get_data gets data about deputies.

Usage

1
deputies_get_data(type, nr_term_of_office = 8)

Arguments

type

type of deputies which be add to table with deputies: active, inactive

nr_term_of_office

number of term of office of Polish Diet; default: 8

Details

Function deputies_get_data gets deputies' ids and personal data like name and surname. Also there is a choice between types of deputies, because on the page of Polish diet deputies are splitted into active and inactive.

Value

data frame with two columns: id_deputy, surname_name

Note

All information is stored in PostgreSQL database.

Author(s)

Piotr Smuda

Examples

1
2
3
4
## Not run: 
deputies_get_data('active')
deputies_get_data('inactive')
## End(Not run)

sejmRP documentation built on May 2, 2019, 5:16 a.m.