powered by
Fills all of an object's missing values while preserving the object's dimensionality and class.
# S3 method for mcmcarray fill_na(x, value = 0, ...)
An object.
A scalar of the value to replace values with.
Other arguments passed to methods.
The modified object.
logical: Fill Missing Values for logical Objects
logical
integer: Fill Missing Values for integer Objects
integer
numeric: Fill Missing Values for numeric Objects
numeric
character: Fill Missing Values for character Objects
character
It should only be defined for objects with values of consistent class ie not standard data.frames.
Other fill: fill_all()
fill_all()
# NOT RUN { # logical fill_na(c(TRUE, NA)) # integer fill_na(c(1L, NA), 0) # numeric fill_na(c(1, NA), Inf) # character fill_na(c("text", NA)) fill_na(matrix(c("text", NA)), value = Inf) # }
Run the code above in your browser using DataLab