Description Usage Arguments Details Value
This function adds the CERQ province names to any dataframe.
1 | add_region(obs_data)
|
obs_data |
a dataframe of observations |
Observations from anywhere in Quebec must fall in one of the 20 CERQ regions. In most of our apps, we use these regions to select subsets of the data. To do this, we need to know the region which matches each observation. This function automates that process.
Note that the mapping may not be perfect, tk link to documentation.
This function uses sf, and will not work unless that is installed.
IMPORTANT: note that you need to have columns called specifically "longitude" and "latitude" in your data frame
the same dataframe with one new column, NOM_PROV_N. This new column contains the French names of the natural provinces of Quebec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.