duration.ismissing
duration: TF = ismissing (D)
duration: TF = ismissing (D, indicator)
Find missing elements in duration array.
TF = ismissing (D) returns a logical array, TF,
with the same dimensions as D, where true values match the
standard missing values in the input duration array.
The optional input indicator can be a scalar or a vector duration array, specifying alternative missing values in the input data. When specifying indicator values, the standard missing values are ignored, unless explicitly stated in the indicator.
Source Code: duration
For a duration ismissing is the same test as isnan: a NaN duration is the missing value, so durations plug into the generic missing-data tools.
d = hours ([1, NaN, 3])
d =
1x3 duration array
1 hr NaN hr 3 hr
ismissing (d)
ans = 0 1 0