na_to_0 {forestmangr} | R Documentation |
Convert NA to zero on numeric variables
Description
This function Convert NA to zero on numeric variables outside of mutate. this is used due to changes on dplyr 1.1.0.
Usage
na_to_0(df)
Arguments
df |
A data frame |
Value
a data frame
Author(s)
Sollano Rabelo Braga sollanorb@gmail.com
Examples
library(forestmangr)
data("exfm15")
head(exfm15)
# Turn NA values to zero only on numeric values
exfm15 %>% na_to_0()
[Package forestmangr version 0.9.8 Index]