marsGapFillEventID: Return a dataset with event IDs for zero-punctuated...

View source: R/mars_data_fetch_write_functions.R

marsGapFillEventIDR Documentation

Return a dataset with event IDs for zero-punctuated timesteps.

Description

Each rainfall event must be zero-punctuated. These zeroes are given event IDs based on the IDs of the rainfall that precede and follow them, given by marsDetectEvents.

Usage

marsGapFillEventID(event_low, event_high)

Arguments

event_low

num, event ID of preceding rainfall.

event_high

num, event ID of following rainfall.

Value

Output will be a vector containing either NA or event low. If one or both events are NA, return NA. If the event IDs are not equal, return NA, since this is a boundary between events. If the event IDs are equal, return event low.


taywater/pwdgsi documentation built on April 19, 2024, 11:10 a.m.