···11Package: dodgr
22Title: Distances on Directed Graphs
33-Version: 0.4.2.039
33+Version: 0.4.2.040
44Authors@R: c(
55 person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre")),
66 person("Andreas", "Petutschnig", role = "aut"),
+66-13
R/iso.R
···11#' Calculate isodistance contours from specified points.
22#'
33+#' @description Calculates isodistances from input `data.frame` objects
44+#' (`graph`), which must minimally contain three columns of `from`, `to`, and
55+#' `d` or `dist`. If an additional column named `weight` or `wt` is present,
66+#' shortest paths are calculated according to values specified in that column,
77+#' while resultant isodistances are calculated from the `d` or `dist` column.
88+#' That is, the paths tracing isodistances from any point will be calculated
99+#' according to the minimal total sum of `weight` values (if present), while
1010+#' reported isodistances will be total sums of `dist` values.
1111+#'
1212+#' Graphs derived from Open Street Map street networks, via the
1313+#' \link{weight_streetnet} function, have columns labelled `d`, `d_weighted`,
1414+#' `time`, and `time_weighted`. For these inputs, isodistances are always
1515+#' routed using `d_weighted` (or `t_weighted` for times), while final
1616+#' isodistances are sums of values of `d` (or `t` for times)- that is, of
1717+#' un-weighted distances or times - along those paths.
1818+#'
319#' Function is fully vectorized to calculate accept vectors of central points
44-#' and vectors defining multiple isodistances.
2020+#' and vectors defining multiple isodistances. Calculations use by default
2121+#' parallel computation with the maximal number of available cores or threads.
2222+#' This number can be reduced by specifying a value via
2323+#' `RcppParallel::setThreadOptions (numThreads = <desired_number>)`.
524#'
625#' @param graph `data.frame` or equivalent object representing the network
726#' graph. For `dodgr` street networks, this may be a network derived from either
···2847#' and `dlim` value(s). The isodistance contours are given as `id` values and
2948#' associated coordinates of the series of points from each `from` point at the
3049#' specified isodistances.
3131-#'
3232-#' @note Isodists are calculated by default using parallel computation with the
3333-#' maximal number of available cores or threads. This number can be reduced by
3434-#' specifying a value via
3535-#' `RcppParallel::setThreadOptions (numThreads = <desired_number>)`.
3650#'
3751#' @family iso
3852#' @export
···136150137151m_iso_calculate <- memoise::memoise (iso_calculate)
138152139139-#' Calculate isochrone contours from specified points.
153153+#' @title Calculate isochrone contours from specified points.
154154+#'
155155+#' @description Calculates isochrones from input `data.frame` objects
156156+#' (`graph`), which must minimally contain three columns of `from`, `to`, and
157157+#' `t` or `time`. If an additional column named `t_weight` or `t_wt` is
158158+#' present, fastest paths are calculated according to values specified in that
159159+#' column, while resultant isochrones are calculated from the `t` or `time`
160160+#' column. That is, the paths tracing isochrones from any point will be
161161+#' calculated according to the minimal total sum of `t_weight` values (if
162162+#' present), while reported isochrones will be total sums of `time` values.
163163+#'
164164+#' Graphs derived from Open Street Map street networks, via the
165165+#' \link{weight_streetnet} function, have columns labelled `d`, `d_weighted`,
166166+#' `time`, and `time_weighted`. For these inputs, isochrones are always routed
167167+#' using `t_weighted`, while final isochrones are sums of values of `t` - that
168168+#' is, of un-weighted distances or times - along those paths.
140169#'
141170#' Function is fully vectorized to calculate accept vectors of central points
142142-#' and vectors defining multiple isochrone thresholds.
171171+#' and vectors defining multiple isochrones. Calculations use by default
172172+#' parallel computation with the maximal number of available cores or threads.
173173+#' This number can be reduced by specifying a value via
174174+#' `RcppParallel::setThreadOptions (numThreads = <desired_number>)`.
143175#'
144176#' @inherit dodgr_isodists
145177#'
···200232 return (res)
201233}
202234203203-#' Calculate isodistance or isochrone contours from specified points.
235235+#' @title Calculate isodistance or isochrone contours from specified points.
236236+#'
237237+#'
238238+#' @description Returns lists of all network vertices contained within
239239+#' isodistance or isochrone contours. Input objects must be `data.frame`
240240+#' objects (`graph`), which must minimally contain three columns of `from`,
241241+#' `to`, and `d` or `dist`. If an additional column named `weight` or `wt` is
242242+#' present, iso contours are evaluate via shortest paths calculated according
243243+#' to values specified in that column, while resultant values of iso contours
244244+#' are calculated from the `d` or `dist` column. That is, the paths tracing iso
245245+#' contours from any point will be calculated according to the minimal total
246246+#' sum of `weight` values (if present), while reported iso contours will be
247247+#' total sums of `dist` values.
248248+#'
249249+#' Graphs derived from Open Street Map street networks, via the
250250+#' \link{weight_streetnet} function, have columns labelled `d`, `d_weighted`,
251251+#' `time`, and `time_weighted`. For these inputs, iso contours are always
252252+#' routed using `d_weighted` (or `t_weighted` for times), while final iso
253253+#' contours reflect sums of values of `d` (or `t` for times) - that is, of
254254+#' un-weighted distances or times - along those paths.
204255#'
205205-#' Returns lists of all network vertices contained within the contours. Function
206206-#' is fully vectorized to calculate accept vectors of central points and vectors
207207-#' defining multiple isochrone thresholds. Provide one or more `dlim` values for
208208-#' isodistances, or one or more `tlim` values for isochrones.
256256+#' Function is fully vectorized to accept vectors of central points and vectors
257257+#' defining multiple isochrone or isodistance thresholds. Provide one or more
258258+#' `dlim` values for isodistances, or one or more `tlim` values for isochrones.
259259+#' Calculations use by default parallel computation with the maximal number of
260260+#' available cores or threads. This number can be reduced by specifying a value
261261+#' via `RcppParallel::setThreadOptions (numThreads = <desired_number>)`.
209262#'
210263#' @inheritParams dodgr_isodists
211264#'
···5050specifying a value via \verb{RcppParallel::setThreadOptions (numThreads = <desired_number>)}.
5151}
5252\description{
5353+Calculates isochrones from input \code{data.frame} objects
5454+(\code{graph}), which must minimally contain three columns of \code{from}, \code{to}, and
5555+\code{t} or \code{time}. If an additional column named \code{t_weight} or \code{t_wt} is
5656+present, fastest paths are calculated according to values specified in that
5757+column, while resultant isochrones are calculated from the \code{t} or \code{time}
5858+column. That is, the paths tracing isochrones from any point will be
5959+calculated according to the minimal total sum of \code{t_weight} values (if
6060+present), while reported isochrones will be total sums of \code{time} values.
6161+6262+Graphs derived from Open Street Map street networks, via the
6363+\link{weight_streetnet} function, have columns labelled \code{d}, \code{d_weighted},
6464+\code{time}, and \code{time_weighted}. For these inputs, isochrones are always routed
6565+using \code{t_weighted}, while final isochrones are sums of values of \code{t} - that
6666+is, of un-weighted distances or times - along those paths.
6767+5368Function is fully vectorized to calculate accept vectors of central points
5454-and vectors defining multiple isochrone thresholds.
5555-}
5656-\note{
5757-Isodists are calculated by default using parallel computation with the
5858-maximal number of available cores or threads. This number can be reduced by
5959-specifying a value via
6969+and vectors defining multiple isochrones. Calculations use by default
7070+parallel computation with the maximal number of available cores or threads.
7171+This number can be reduced by specifying a value via
6072\verb{RcppParallel::setThreadOptions (numThreads = <desired_number>)}.
6173}
6274\examples{
+19-6
man/dodgr_isodists.Rd
···5050specified isodistances.
5151}
5252\description{
5353+Calculates isodistances from input \code{data.frame} objects
5454+(\code{graph}), which must minimally contain three columns of \code{from}, \code{to}, and
5555+\code{d} or \code{dist}. If an additional column named \code{weight} or \code{wt} is present,
5656+shortest paths are calculated according to values specified in that column,
5757+while resultant isodistances are calculated from the \code{d} or \code{dist} column.
5858+That is, the paths tracing isodistances from any point will be calculated
5959+according to the minimal total sum of \code{weight} values (if present), while
6060+reported isodistances will be total sums of \code{dist} values.
6161+6262+Graphs derived from Open Street Map street networks, via the
6363+\link{weight_streetnet} function, have columns labelled \code{d}, \code{d_weighted},
6464+\code{time}, and \code{time_weighted}. For these inputs, isodistances are always
6565+routed using \code{d_weighted} (or \code{t_weighted} for times), while final
6666+isodistances are sums of values of \code{d} (or \code{t} for times)- that is, of
6767+un-weighted distances or times - along those paths.
6868+5369Function is fully vectorized to calculate accept vectors of central points
5454-and vectors defining multiple isodistances.
5555-}
5656-\note{
5757-Isodists are calculated by default using parallel computation with the
5858-maximal number of available cores or threads. This number can be reduced by
5959-specifying a value via
7070+and vectors defining multiple isodistances. Calculations use by default
7171+parallel computation with the maximal number of available cores or threads.
7272+This number can be reduced by specifying a value via
6073\verb{RcppParallel::setThreadOptions (numThreads = <desired_number>)}.
6174}
6275\examples{
+24-4
man/dodgr_isoverts.Rd
···3535specifying a value via \verb{RcppParallel::setThreadOptions (numThreads = <desired_number>)}.
3636}
3737\description{
3838-Returns lists of all network vertices contained within the contours. Function
3939-is fully vectorized to calculate accept vectors of central points and vectors
4040-defining multiple isochrone thresholds. Provide one or more \code{dlim} values for
4141-isodistances, or one or more \code{tlim} values for isochrones.
3838+Returns lists of all network vertices contained within
3939+isodistance or isochrone contours. Input objects must be \code{data.frame}
4040+objects (\code{graph}), which must minimally contain three columns of \code{from},
4141+\code{to}, and \code{d} or \code{dist}. If an additional column named \code{weight} or \code{wt} is
4242+present, iso contours are evaluate via shortest paths calculated according
4343+to values specified in that column, while resultant values of iso contours
4444+are calculated from the \code{d} or \code{dist} column. That is, the paths tracing iso
4545+contours from any point will be calculated according to the minimal total
4646+sum of \code{weight} values (if present), while reported iso contours will be
4747+total sums of \code{dist} values.
4848+4949+Graphs derived from Open Street Map street networks, via the
5050+\link{weight_streetnet} function, have columns labelled \code{d}, \code{d_weighted},
5151+\code{time}, and \code{time_weighted}. For these inputs, iso contours are always
5252+routed using \code{d_weighted} (or \code{t_weighted} for times), while final iso
5353+contours reflect sums of values of \code{d} (or \code{t} for times) - that is, of
5454+un-weighted distances or times - along those paths.
5555+5656+Function is fully vectorized to accept vectors of central points and vectors
5757+defining multiple isochrone or isodistance thresholds. Provide one or more
5858+\code{dlim} values for isodistances, or one or more \code{tlim} values for isochrones.
5959+Calculations use by default parallel computation with the maximal number of
6060+available cores or threads. This number can be reduced by specifying a value
6161+via \verb{RcppParallel::setThreadOptions (numThreads = <desired_number>)}.
4262}
4363\examples{
4464\dontrun{