replace_nonfinite | R Documentation |
Used internally, helper function that replaces non-finite (i.e., NA
, NaN
,
Inf
, and -Inf
) values according to is.finite()
, primarily used to
replace NaN
/Inf
/-Inf
with NA
.
a %f|% b
a |
atomic vector of any type. |
b |
single value to replace non-finite values with. |
If values in a
are non-finite, they are replaced with b
,
otherwise they are left unchanged.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.