R/isEuclidean.R

Defines functions isEuclidean

Documented in isEuclidean

#' @title Check if network is euclidean.
#'
#' @description Check if a \code{Network} object has euclidean coordinates.
#'
#' @template arg_network
#' @return [\code{logical(1)}]
#' @export
isEuclidean = function(x) {
  return(x$edge.weight.type %in% c("EUC_2D", "EUC_3D"))
}

Try the netgen package in your browser

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

netgen documentation built on Jan. 9, 2020, 1:07 a.m.