inst/doc/quick_start_guide.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
# # Install or update the package:
# install.packages("csodata")

library(csodata)

## -----------------------------------------------------------------------------
toc <- cso_get_toc()
head(toc)

## -----------------------------------------------------------------------------
tbl1 <- cso_get_data("PEA19")

## -----------------------------------------------------------------------------
meta1 <- cso_get_meta("CDP06")
cso_disp_meta("CDP06")

## -----------------------------------------------------------------------------
shp <- cso_get_geo("County Councils")

## ---- fig.width = 5, fig.height=6, eval= !is.null(shp)------------------------
# install.packages("leaflet")
library(leaflet)


leaflet(shp) %>% 
  addTiles() %>% 
  addPolygons()



## -----------------------------------------------------------------------------
cso_clear_cache()

Try the csodata package in your browser

Any scripts or data that you put into this service are public.

csodata documentation built on Aug. 11, 2023, 5:08 p.m.