Learn R Programming

sejmRP (version 1.3)

deputies_add_new: 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

Value

invisible NULL

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.

Examples

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

Run the code above in your browser using DataLab