coalesce_: Front-end to dplyr::coalesce to deal with NULL vectors

View source: R/utils.R

coalesce_R Documentation

Front-end to dplyr::coalesce to deal with NULL vectors

Description

Replaces any NULL argument with a vector of NA, and casts every vector to the same type as the last vector. After that, calls dplyr::coalesce().

Usage

coalesce_(...)

Arguments

...

the vectors to coalesce on NA

Value

a vector of the same type and length as the last argument

See Also

dplyr::coalesce()


ropensci/RNeXML documentation built on Jan. 14, 2023, 4:36 a.m.