A R shiny app showing baby names trends in Scotland since 1974. Go to the app.
Tidy up the user input and split into a vector of valid names. Plot
these names and display a list of similar names by Levenshtein
distance. Each of
these similar names is an ActionLink
that updates the plot.
- Make a copy of the most recent files
- Update the CSV file
- Check for names that contain characters that aren’t letters,
dashes or apostrophes (regex:
[^A-Za-z'-]
) - User input is split by these characters in
server.R
(e.g. commas and spaces)
- Check for names that contain characters that aren’t letters,
dashes or apostrophes (regex:
- Update the code
- Update the data download link:
data_url
online 22
inglobal.R
- Update the data download link:
- Create a feather
file from the CSV
file
- There is a script for this
- This format is used to reduce the load time of the app. In future, the data could be uploaded to statistics.gov.scot. This would allow the app to use the API instead.
The day before launch, scale up performance noting the original values you usedOnce demand has returned back to normal (usually after a few days) scale performance back down by returning the settings in step 5 back to normal- This has been ramped up permanently, but may need to go back to doing this if it causes problems
This repository is available under the Open Government Licence v3.0.