{kimisc}R Documentation

Replaces NA values


This (vectorized) function returns the first non-NA argument, similar to the SQL function COALESCE. If a vector or matrix is passed as first argument, the remaining arguments are recycled to generate a vector/matrix of the same dimension, and coalescing is done element by element.

Usage, ...)



The first value to coalesce.


Other values to coalesce.


A vector of the same length as x.

See Also

Other deprecated functions: df_to_list-deprecated,, kimisc-deprecated, list_to_df-deprecated, nc-deprecated, nlist-deprecated, ofactor-deprecated, sample.rows-deprecated,, thisfile-deprecated, tll-deprecated, vswitch-deprecated

Examples, -1), 3),NA,NA), c(NA,2)), 1:3), nrow=2))

[Package kimisc version 0.4 Index]