deputies_add_new {sejmRP}R Documentation

Adding new deputies to table

Description

Function deputies_add_new adds new deputies to a table with deputies.

Usage

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

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


[Package sejmRP version 1.3.4 Index]