get_filtered_votes
reads filtered votes from a database.
get_filtered_votes(dbname = 'sejmrp', user = 'reader', password = 'qux94874', host = 'services.mini.pw.edu.pl', windows = .Platform$OS.type == 'windows', clubs = character(0), dates = character(0), terms_of_office = integer(0), meetings = integer(0), votings = integer(0), deputies = character(0), topics = character(0))
get_filtered_votes
reads filtered votes from a database.
The result of this function is an invisible data frame with statements' data.Possible filters:
If you did not choose any filter, the whole database will be downloaded. Note that, due to data size (<= ~150="" mb)="" it="" may="" take="" few="" seconds="" minutes="" to="" download="" all="" votes.<="" p="">
Because of encoding issue on Windows operation system, you also need to select if you use Windows.
=>## Not run:
# filtered_votes <- get_filtered_votes()
# dim(filtered_votes)
# # [1] 2826483 9
# names(filtered_votes)
# [1] 'surname_name' 'nr_term_of_office' 'club' 'vote' 'id_voting'
# [6] 'nr_meeting' 'nr_voting' 'date_meeting' 'topic_voting'
# object.size(filtered_votes)
# # 148694336 bytes## End(Not run)
Run the code above in your browser using DataLab