Skip to content

Commit

Permalink
improve docs of dists_proportional for #144
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Sep 12, 2021
1 parent d4c606e commit e47fc28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions R/dists-proportional.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
#' @inheritParams dodgr_dists
#' @param graph `data.frame` or equivalent object representing the network
#' graph which must have a column named "edge_type" with integer types along
#' which proportional distances are to be aggregated. The value of "edge_type" =
#' 0 is the default type for which proportional distances are not aggregated.
#' which proportional distances are to be aggregated (see Note).
#' @return A list of distance matrices of equal dimensions (length(from),
#' length(to)), the first of which ("distance") holds the final distances, while
#' the rest are one matrix for each unique value of "edge_type", holding the
#' distances traversed along those types of edges only.
#'
#' @note The "edge_type" column in the graph must be labelled with sequential
#' integer values: The first type should have a value of 1; the second a value
#' of 2; and so on. Values of 0 can be used to flag "default" edges for which
#' distances are not to be aggregated.
#' @export
dodgr_dists_proportional <- function (graph,
from = NULL,
Expand Down
9 changes: 7 additions & 2 deletions man/dodgr_dists_proportional.Rd

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

0 comments on commit e47fc28

Please sign in to comment.