2024-09-04
mapview::mapview()
data
folder and an R
folder{labelled}
Are there any tips for transforming spreadsheet data structures that might not be tidy when importing into R?
The Spreadsheet Munging Strategies book by Duncan Garmonsway and the related packages tidyxl and unpivotr.
This blog post by Sophie Bennet is a helpful resource with tips on common issues: column names in multiple rows, variables in multiple columns, data in multiple sheets, and inconsistencies between sheets.
Helpful functions for cleaning messy spreadsheet data include dplyr::coalesce()
(combining values from muliple columns into one), tidyr::fill()
for copying values down across rows, and tidyr::separate_wider_delim()
for splitting columns.
Is there any way to label a subset of items (instead of everything) with ggplot2?
You can pass a function in place of the data argument for any geom_
function to subset your data. You can also create manual annotations with the annotation()
function or use a dedicated package like gghighlight. ggrepel is a more advanced labelling package that doesn’t have dedicated sf
friendly functions — but can still work.
How can a team decide which documents are most critical to maintain if they have limited resources for documentation?
What is the source()
function and how does it work?
You can use source()
to load and execute R code from a file. It is helpful for including combining code in multiple files as part of a single script or document.
How is osmextract different from osmdata, on a technical level?
You can use osmdata to access the Overpass API. Use osmextract to download a prepared file from a processed OSM data provider.
Are there cheat-sheets for reading in data as well, or is it simply something you have to remember for yourself depending on what data formats you are using?
Yes! See this Posit cheatsheet on data import.
McConchie introduces the concept of map-gardening: “the editing tasks that keep OSM going… the things that happen after that fun trailblazing phase of mapping all the streets in your neighborhood.”
McConchie asks: “How do we make sure that OSM is a healthy community that has gardening, has people who enjoy maintenance?
Why did Boeing make OSMnx open source? Making the tool open source:
Why did Boeing use OpenStreetMap data?