Description Usage Arguments Value
Gets variable data for specified variable(s) from specified table and applies a weighted average on the variable "val" using the the 'group_by' input
1 2 3 4 |
con |
A connection created by |
variables |
character - the variable(s) to fetch data for |
schema |
character - one or more table names |
where_clause |
A where clause to append to the query |
group_by |
Any 'specified_variables' to group results by, typically grouped by a time or location variable |
weight |
Name of column the 'project_tbl' that is to be used to weight the results, typically "branch_book". Must be used in combination with 'weight_by' |
weight_by |
Name of column from 'project_tbl' that is to be used to group the weights, typically a spatial grouping, such as "sub_iso". |
A dataframe with the specified variables as columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.