Sum up the number of observations based on a geography
1 | sum_to_geo(data, geovar, predvar, fracvar, name)
|
data |
the dataset that has all the variables |
geovar |
the variable indicating the geography to sum up to |
predvar |
the variable for the predicted value |
fracvar |
the variable that indicates the relative size of the cell, a string |
name |
name for the new var, a string |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.