build_RIS_db: Function to create and fill a database

Description Usage Arguments Details Value Note Author(s) References Examples

Description

Populates a database with entries from the online RIS (Austria).

Usage

1
	build_RIS_db(con, from=1, to=80000, new_table=TRUE) 

Arguments

con

DBI connection object.

from

Lower bound for the download process. The number used is the same one as the identifier number on the homepage.

to

Upper bound for the download process.

new_table

When new\_table is set, the script (re-)creates the necessary database table, dropping any previously defined table of the same name. Default is TRUE.

Details

This function loads the RIS data from the RIS webpage into a (possibly local) mySQl database. To load all data, simply connect to the database and call build\_RIS\_db(con). It is also possible to downlaod smaller parts of the full db by using the to and from parameters.

The URL used for acccessing the rulings is http://ris.bka.gv.at/taweb-cgi/taweb?x=d&o=d&d=VwGHT&i=%d&v=vwgh (replace %d with the id of the ruling).

Value

build\_RIS\_db returns nothing on success.

Note

Make sure to set the encoding of your database connection to the encoding of your R locale, i.e. "latin1" or "UTF-8".

Author(s)

Martin Kober <martin.kober@wu-wien.ac.at>, Georg M. Zajko <georg.zajko@wu-wien.ac.at>

References

Austrian law information system http://www.ris.bka.gv.at/

Examples

1
2
3
4
5
## Not run: 
con = dbConnect(...)
build_RIS_db(con)

## End(Not run)

VwGHat documentation built on May 2, 2019, 5:55 p.m.