-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathget_time_elements.Rd
More file actions
28 lines (26 loc) · 988 Bytes
/
get_time_elements.Rd
File metadata and controls
28 lines (26 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rate_functions.R
\name{get_time_elements}
\alias{get_time_elements}
\title{Get array indices for a time range in a MizerSim object}
\usage{
get_time_elements(sim, time_range, slot_name = "n")
}
\arguments{
\item{sim}{A MizerSim object.}
\item{time_range}{A numeric or character vector of times. Only the range of
values matters, so all saved times between \code{min(time_range)} and
\code{max(time_range)} are selected.}
\item{slot_name}{Obsolete, kept only for backward compatibility with early
versions where different time-based slots could have different time grids.
Leave at the default.}
}
\value{
A named logical vector, with one entry for each saved time in \code{sim},
indicating whether that time lies in the requested range.
}
\description{
Internal helper to select the saved time points whose times lie between the
smallest and largest values in \code{time_range}, inclusive.
}
\concept{helper}