library(tidyverse)
library(tidytext)
library(ggraph)
library(igraph)
#> 
#> Attaching package: 'igraph'
#> The following objects are masked from 'package:dplyr':
#> 
#>     as_data_frame, groups, union
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | library(tidyverse) | |
| library(eurostat) | |
| library(countrycode) | |
| library(gt) | |
| library(gtExtras) | |
| data <- get_eurostat("prc_hicp_manr", filters = list(coicop = "CP00")) | |
| ea.avg <- data |> filter(geo == "EA") |> slice_max(time, n=1) |> pull(values) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # converts slippy map XYZ tile to quadkey | |
| # https://docs.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system | |
| as_binary = function(x){ | |
| tmp = rev(as.integer(intToBits(x))) | |
| id = seq_len(match(1, tmp, length(tmp)) - 1) | |
| tmp[-id] | |
| } | |
| deg2num = function(lat_deg, lon_deg, zoom) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ##============================================================================== | |
| ## INITIALIZE | |
| ##============================================================================== | |
| rm(list=ls()) | |
| library(geneorama) ## Not actually needed | |
| library(data.table) |