votes_create_table: Creating table with votes

Description Usage Arguments Value Note Author(s) Examples

View source: R/votes_create_table.R

Description

Function votes_create_table creates a table with votes.

Usage

1
2
votes_create_table(dbname, user, password, host,
  nr_term_of_office = 8, windows = .Platform$OS.type == 'windows')

Arguments

dbname

name of database

user

name of user

password

password of database

host

name of host

nr_term_of_office

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

windows

information of used operation system; default: .Platform$OS.type == 'windows'

Value

invisible NULL

Note

Use only this function for first time, when the votes table is empty. Then use votes_update_table.

There is a possibility that someone's voice reader broke during voting and this situation is treated like this deputy was absent. Even if deputy made a decision, he's/she's vote is 'Nieobecny'.

All information is stored in PostgreSQL database.

Author(s)

Piotr Smuda

Examples

1
2
3
4
## Not run: 
votes_create_table(dbname, user, password, host, 7, TRUE)
votes_create_table(dbname, user, password, host, 7, FALSE)
## End(Not run)

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