safe_ifelse: Safe (type maintained) version of ifelse

Description Usage Arguments Details

View source: R/safeIfElse.R

Description

Safe (type maintained) version of ifelse

Usage

1
safe_ifelse(cond, yes, no)

Arguments

cond

logical condition

yes

replacement if condition is true

no

replacement if condition is false

Details

From http://stackoverflow.com/questions/6668963/how-to-prevent-ifelse-from-turning-date-objects-into-numeric-objects


srvanderplas/nppd documentation built on May 30, 2019, 8:42 a.m.