R/hasDepots.R

Defines functions hasDepots

Documented in hasDepots

#' Check if network has depots.
#'
#' @template arg_network
#' @return [\code{logical(1)}]
#' @export
hasDepots = function(x) {
  assertClass(x, "Network")
  !is.null(x$depot.coordinates)
}
jakobbossek/netgen documentation built on Feb. 11, 2024, 1:02 a.m.