na_to_0 | R Documentation |
This function Convert NA to zero on numeric variables outside of mutate. this is used due to changes on dplyr 1.1.0.
na_to_0(df)
df |
A data frame |
a data frame
Sollano Rabelo Braga sollanorb@gmail.com
library(forestmangr)
data("exfm15")
head(exfm15)
# Turn NA values to zero only on numeric values
exfm15 %>% na_to_0()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.