% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/weights.R
\name{get_local_distances}
\alias{get_local_distances}
\title{Extract distances from one focus unit to all others}
\usage{
get_local_distances(distance_context, focus_id)
}
\arguments{
\item{distance_context}{A list as returned by `build_distance_context()`, or
a plain n x n numeric distance matrix.  If a plain matrix is supplied, the
rows and columns must already be in the same order as the spatial units.}

\item{focus_id}{Integer scalar (1-based) or character matching a
row/column name of the distance matrix.  The focal unit whose distances
are extracted.}
}
\value{
A numeric vector of length n giving the distance from the focus unit
  to every unit (including itself, which is 0).
}
\description{
Extract distances from one focus unit to all others
}
\keyword{internal}
