str_either: Return y if x is NA or empty character, otherwise return x

View source: R/character.R

str_eitherR Documentation

Return y if x is NA or empty character, otherwise return x

Description

Return y if x is NA, otherwise return x

Usage

str_either(x, y)

Arguments

x

target value

y

alternatively returned value

Value

x or y, whose length is euqal to length_x


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.