Fills all of an object's missing values while preserving the object's dimensionality and class.
Usage
fill_na(x, value, ...)
# S3 method for class 'logical'
fill_na(x, value = FALSE, ...)
# S3 method for class 'integer'
fill_na(x, value = 0L, ...)
# S3 method for class 'numeric'
fill_na(x, value = 0, ...)
# S3 method for class 'character'
fill_na(x, value = "0", ...)
Details
It should only be defined for objects with values of consistent class ie not standard data.frames.
Methods (by class)
fill_na(logical)
: Fill Missing Values for logical Objectsfill_na(integer)
: Fill Missing Values for integer Objectsfill_na(numeric)
: Fill Missing Values for numeric Objectsfill_na(character)
: Fill Missing Values for character Objects
See also
Other fill:
fill_all()