The goal of miscOAT is to provide a testing area for trying out functions that could be useful to put in a package.
You can install the released version of miscOAT from CRAN with:
This is a basic example which shows how to use the package to get ONS deaths and population data:
library(miscOAT) # run the function to get deaths and population data oatData() # get total deaths per year deaths %>% group_by(DeathRegistrationCalendarYear) %>% summarise(n()) # get Powys population for 2018 pop_la %>% filter(yr==2018 & ua_code =="NN") %>% summarise(sum(population)) # geocode some postcodes postcode_test <- data.frame("postcode" = c("CF10 4BZ", "CH7 1PZ", "SA31 3WY")) geocode(postcode_test, 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.