Description Usage Arguments Value Examples
Run a pure SQL query on the KRSP database and return a data frame. To avoid
accidentally changing the database, only SELECT
queries are permitted.
1 | krsp_sql(con, sql)
|
con |
Connection to KRSP database |
sql |
SQL query to execute |
data.frame of query results
1 2 | con <- krsp_connect()
krsp_sql(con, "SELECT COUNT(*) AS n_squirrels FROM squirrel")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.