Description Usage Arguments Note Examples
get_cebrap_table()
fetches tables from the Cebrap's Brazilian Legislative Database.
To use it, users must provide the name of an actual table in the database and
the function will handle the SQL queries under the hood. Is it also possible
to customize the function call to select just a sample of rows or the name
of the columns.
1 | get_cebrap_table(conn, table, head = TRUE, verbose = TRUE)
|
conn |
A JDBC connection object created by the |
table |
A |
head |
Should the function return only the five first rows from the table? To
save server resources, this defaults to |
verbose |
Should the function display messages? Defaults to |
Currently, get_cebrap_table()
only works with the Congresso_BE
database.
1 2 3 4 5 6 | ## Not run:
# Request a table
conn <- set_connection(login = "login", password = "pass")
senadores <- get_cebrap_table(conn, "tbl_Sen")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.