download_declarations: Download declarations

Description Usage Arguments Examples

View source: R/edecl.R

Description

Downloads declarations from declarations.com.ua

Usage

1
2
3
download_declarations(q = NULL, deepsearch = FALSE,
  declaration_year = NULL, doc_type = NULL, post_type = NULL,
  region_type = NULL, region_value = NULL)

Arguments

q

Search query

deepsearch

Should website search in all declarations field, not only in name and workpost?

declaration_year

Character or numeric. The year of declaration.

doc_type

Character or numeric. The type of declaration. 1 - "Щорічна", 2 - "Перед звільненням", 3 - "Після звільнення", 4 - "Кандидата на посаду", 5 - "Форма змін".

post_type

Character or numeric. The type of declarer's position. Accepting vector longer than 1 element. 1 or "державної" for state authorities position, 2 or "місцевого" for local authorities, 3 or "юридичної" for state-owned enterprises.

region_type

Should it be search in regions where declarer is registered (1 or "region"), where he lives (2 or "actual_region") or where owns realty (3 or "estate_region")?

region_value

Region query value. Substring that can identify region name.

Examples

1
2
3
library(dplyr)
poroshenko2016 <- 
    download_declarations("порошенко петро олексійович", declaration_year = 2016, declaration_type = 1)

texty/edecl documentation built on May 29, 2019, 10:53 a.m.