deputies_add_new: Adding new deputies to table

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/deputies_add_new.R

Description

Function deputies_add_new adds new deputies to a table with deputies.

Usage

1
2
deputies_add_new(dbname, user, password, host, type, id,
  nr_term_of_office = 8)

Arguments

dbname

name of database

user

name of user

password

password of database

host

name of host

type

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

id

id of deputies from which we start add new deputies

nr_term_of_office

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

Details

Function deputies_add_new adds new deputies to a table with deputies. Also there is a choice between types of deputies, because on the page of Polish diet deputies are splitted into active and inactive. In addition id of the last added deputy in deputies table is needed.

Value

invisible NULL

Note

All information is stored in PostgreSQL database.

Author(s)

Piotr Smuda

Examples

1
2
3
4
## Not run: 
deputies_add_new(dbname, user, password, host, 'active', id)
deputies_add_new(dbname, user, password, host, 'inactive', id)
## End(Not run)

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