coalesce: R coalesce Function

View source: R/helpers.R

coalesceR Documentation

R coalesce Function

Description

accepts a list of vectors of identical length and returns one vector with the first non-NA value

Usage

coalesce(...)

Arguments

list

of vectors of identical length

Value

one vector with the first non-NA value

Author(s)

Stefan Bartels, email@biobits.eu

Examples

coalesce(c(NA,NA,53))


biobits/bbhelper documentation built on Feb. 11, 2025, 4:53 p.m.