replace_zero | R Documentation |
Replace zeros with a default value
replace_zero(x, value = NA)
x |
vector containing zeros |
value |
replacement value |
x <- c(0, 1, 2, 3)
replace_zero(x)
replace_zero(x, value = NaN)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.