Skip to content

Commit

Permalink
Document new data
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Aug 4, 2024
1 parent ccbc347 commit 32dcc2f
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 6 deletions.
41 changes: 38 additions & 3 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#' @aliases si_centroids
#' @examples
#' si_zones
#' plot(si_zones$geometry)
#' plot(si_centroids$geometry, add = TRUE)
#' sf:::plot.sfg(si_zones$geometry)
#' sf:::plot.sfg(si_centroids$geometry, add = TRUE)
NULL

#' Example OD dataset
Expand Down Expand Up @@ -70,7 +70,7 @@ NULL
#' @name zones_york
#' @examples
#' head(zones_york)
#' plot(zones_york$geometry)
#' sf:::plot.sfg(zones_york$geometry)
NULL

#' Example destinations dataset: schools in York
Expand All @@ -84,4 +84,39 @@ NULL
#' @name destinations_york
#' @examples
#' head(destinations_york)
NULL

#' Origin-Destination Data for Leeds
#'
#' This dataset contains origin-destination data for Leeds, including the number of trips between output areas (OAs) and workplace zones (WPZs).
#'
#' @docType data
#' @keywords datasets
#' @name si_oa_wpz
#' @examples
#' head(si_oa_wpz)
NULL

#' Origin Data for Leeds
#'
#' This dataset contains the number of trips originating from each output area (OA) in Leeds.
#'
#' @docType data
#' @keywords datasets
#' @name si_oa_wpz_o
#' @examples
#' head(si_oa_wpz_o)
#' sf:::plot.sf(si_oa_wpz_o["n_o"])
NULL

#' Destination Data for Leeds
#'
#' This dataset contains the number of trips destined for each workplace zone (WPZ) in Leeds.
#'
#' @docType data
#' @keywords datasets
#' @name si_oa_wpz_d
#' @examples
#' head(si_oa_wpz_d)
#' sf:::plot.sf(si_oa_wpz_d["n_d"])
NULL
1 change: 1 addition & 0 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,5 @@ bench::mark(
usethis::use_github_action("check-standard")
# Add pkgdown action:
usethis::use_github_action("pkgdown")
usethis::use_data_raw("si_oa_wpz")
```
13 changes: 13 additions & 0 deletions man/si_oa_wpz.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions man/si_oa_wpz_d.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions man/si_oa_wpz_o.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/si_zones.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/zones_york.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 32dcc2f

Please sign in to comment.