fill_nas: Fill all NA values in numeric columns with zero

Description Usage Arguments Value Examples

View source: R/fill_nas.R

Description

Any NA values in a column of type numeric will be replaced with a zero.

Usage

1
fill_nas(.data)

Arguments

.data

a tbl or data frame

Value

An object of the same class as '.data'

Examples

1
2
3
4
5
library(dplyr)

data_tbl <- tibble(x = c(1, NA_real_, 3), y = c("a", "b", "C"), z = c(7, NA_real_, NA_real_))

fill_nas(data_tbl)

RobbyLankford/lankford documentation built on April 24, 2020, 7:37 p.m.