View source: R/load-random-forest-data.R
A brute force approach is used to match latitude and longitude pairs and the corrisponding value of variable.
| 1 2 | format_lon_lat(dataframe, reference_df, variable, lon_lat_names = c("lon",
  "lat"))
 | 
| dataframe | a dplyr dataframe. | 
| reference_df | a reference dataframe that must contain at least longitude and latitude. A dataframe. | 
| variable | variable to be used in the reformatting process. The values of this variable will be reordered according to the new longitude and latitude values. Character. | 
| lon_lat_names | name of longitude and latitude variables. A character vector. Example: by default lon_lat_names = c("lon", "lat") | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.