It is an alias for data.table fcoalesce
. For details see fcoalesce
coalesce(...)
... | vectors |
---|
A vector the same length as the first ... argument with NA values replaced by the first non-missing value.
#> [1] 5 0 4 0 2 3 1 0#> [1] 1 2 3 4 5