SafeIfelse: Keep Date Format in ifelse

Description Usage Arguments Value

View source: R/SafeIfelse.R

Description

This function keeps the correct date format in a ifelse condition function

Usage

1
SafeIfelse(cond, yes, no)

Arguments

cond

a true or false condition statement which can be coerced to logical mode.

yes

return values for true elements of cond.

no

return values for false elements of cond.

Value

A vector of the same length and attributes (including dimensions and "class") as cond and data values from the values of yes or no.


honggao110/TrackCompliance documentation built on May 17, 2019, 4:51 p.m.