coalesce: Coalesce vectors

Description Usage Examples

View source: R/coalesce.R

Description

Returns the expression with the highest precedence that is nor missing. If all expressions are missing, the result is NA.

Usage

1

Examples

1
coalesce(c(NA,2,NA), c(1, NA, NA), c(NA, NA, 3))

JackStat/THMisc documentation built on May 7, 2019, 10:17 a.m.