Description Usage Arguments Value Examples
Returns data of executed query in data.table or raw text format
1 | get_query_result(connection, query_id, data_format = "data.table")
|
connection |
connection object |
query_id |
query_id of the executed query |
data_format |
when 'data.table' it returns data in a data.table. If 'raw', data will be returns as csv text |
query result
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Create and execute simple query
# Step 1. Define concept to use
# (you can look up all possible ids using get_concepts())
concept_id = "adb_energie.alter"
# Step 2. Create query from concept id and store query in variable
# Similar to dragging concept in editor field in frontend
query = concept_to_query(concept_id, connection = connection, start_date="2017-01-01", end_date="2017-01-31")
# Step 3. Execute query you created and store query id in variable
query_id = execute_query(connection, query)
# Step 4. Get query result (by default a data.table format is returned)
data = get_query_result(connection, query_id)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.