Description Usage Arguments Author(s) Examples
Constructs an SQL query for a postgres database. Modelled on the base R function 'subset'.
1 | sql_subset(conn, x, subset, select, schema, limit, eval)
|
conn |
database connection |
x |
the table name |
subset |
the SQL 'where' statement |
select |
which variables to include |
schema |
the schema that has the table in it |
limit |
limit, often useful for debugging |
eval |
evaluate the query on the database? |
ivanhanigan
1 2 3 4 5 6 7 8 9 | ## Not run:
ch <- connect2postgres('115.146.84.135', db='ewedb',
user='gislibrary', p='gislibrary')
sql <- sql_subset(conn=ch, x='spatial_ref_sys',
subset = "srid = 4283", select='srid, srtext',
limit = 2, eval = T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.