Description Usage Arguments Details Value Author(s)
Recieve an array and replaces the "nulls" elements of it by a replacement.
1 | replaceNull(x,replacement,...)
|
x |
array. Don't use List nor Dataframes. |
replacement |
value or array to replace nulls. |
... |
array of "nulls". It takes NA, Inf, -Inf, NULL and NaN as "nulls" by default. |
If replacement is an array with length L shorter than x's length, the funciton would replace the null on the position K*L+i of x, by replacement's i-element. This means the function would go through both arrays at same, repeating the replacement till the end
Returns an array with nulls replaced.
Daniel Fischer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.