qt_basic | R Documentation |
The most basic query pattern
qt_basic( select_cols, table_name, where = NULL, group_by = NULL, order_by = NULL, limit = NULL )
select_cols |
vector of columns to select. Names will be used as identifiers, if supplied |
table_name |
table to select from |
where |
vector of constraints to be joined with 'and' |
group_by |
vector of columns to group by |
order_by |
vector of columns to order by |
limit |
number of rows to return |
a filled query
qt_basic( select_cols = c(Date = "saledate", "Country", Sales = "SUM(sales)"), table = "all_sales", where = c("country in ('US', 'CA')", "year = 2020"), group_by = c("saledate", "country"), order_by = "Date")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.