Skip to content

Instantly share code, notes, and snippets.

@Straubinger
Last active November 13, 2021 17:15
Show Gist options
  • Select an option

  • Save Straubinger/d63d815918b78dd63c6e10a02e8944c2 to your computer and use it in GitHub Desktop.

Select an option

Save Straubinger/d63d815918b78dd63c6e10a02e8944c2 to your computer and use it in GitHub Desktop.
Grid of the districts of Copenhagen to be used with the 'geofacet' R package
# This code creates a grid of the districts of Copenhagen to be used with the 'geofacet' R package (https://hafen.github.io/geofacet/)
# Until the grid has been added to the package run the code to use the grid.
dk_cph_grid1 <- data.frame(
row = c(1, 1, 1, 1, 2, 2, 3, 3, 3, 3),
col = c(1, 2, 4, 3, 1, 3, 4, 3, 1, 2),
code = c("7", "8", "2", "3", "6", "1", "9", "10", "5", "4"),
name = c("Brønshøj-Husum", "Bispebjerg", "Østerbro", "Nørrebro", "Vanløse", "Indre By",
"Amager Øst", "Amager Vest", "Valby", "Vesterbro-Kgs. Enghave"),
stringsAsFactors = FALSE
)
# Preview the grid
grid_preview(dk_cph_grid1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment