Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Apr 23, 2024
1 parent f2c555b commit f15aa48
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
11 changes: 6 additions & 5 deletions R/rnet_join.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Join route networks
#'
#' This is a spatial join function that is enables adding columns to a
#' 'target' route network from a 'source' route
#' Join function that adds columns to a
#' 'target' route network `sf` object from a 'source' route
#' network that contains the base geometry, e.g. from OSM
#'
#' The output is an sf object containing polygons representing
Expand Down Expand Up @@ -180,6 +180,10 @@ line_cast <- function(x) {
}

#' Merge route networks, keeping attributes with aggregating functions
#'
#' This is a small wrapper around `rnet_join()`.
#' In most cases we recommend using [`rnet_join()`] directly,
#' as it gives more control over the results
#'
#' @inheritParams rnet_join
#' @param sum_flows Should flows be summed? `TRUE` by default.
Expand Down Expand Up @@ -224,9 +228,6 @@ line_cast <- function(x) {
#' # rnet_y = sf::read_sf("rnet_y_ed.geojson")
#' # rnet_merged = rnet_merge(rnet_x, rnet_y, dist = 9, segment_length = 20, funs = funs)
#' @return An sf object with the same geometry as `rnet_x`
#'


rnet_merge <- function(rnet_x, rnet_y, dist = 5, funs = NULL, sum_flows = TRUE, crs = geo_select_aeq(rnet_x), ...) {

# handle_strings = function(strings) {
Expand Down
4 changes: 2 additions & 2 deletions man/rnet_join.Rd

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

4 changes: 3 additions & 1 deletion man/rnet_merge.Rd

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

0 comments on commit f15aa48

Please sign in to comment.