powered by
Fills missing values.
fill_na(x, ...)# S3 method for logical fill_na(x, value = FALSE, ...)# S3 method for integer fill_na(x, value = 0L, ...)# S3 method for numeric fill_na(x, value = 0, ...)# S3 method for character fill_na(x, value = "0", ...)# S3 method for nlist fill_na(x, value = 0L, ...)# S3 method for nlists fill_na(x, value = 0L, ...)
# S3 method for logical fill_na(x, value = FALSE, ...)
# S3 method for integer fill_na(x, value = 0L, ...)
# S3 method for numeric fill_na(x, value = 0, ...)
# S3 method for character fill_na(x, value = "0", ...)
# S3 method for nlist fill_na(x, value = 0L, ...)
# S3 method for nlists fill_na(x, value = 0L, ...)
The object.
Unused.
A scalar of the value to replace missing values with.
The object with missing values filled.
logical: Fill missing values of logical object
logical
integer: Fill missing values of integer object
integer
numeric: Fill missing values of numeric object
numeric
character: Fill missing values of character object
character
nlist: Fill missing values of nlist object
nlist
nlists: Fill missing values of nlist object
nlists
# NOT RUN { fill_na(nlist(x = c(2, NA), y = matrix(c(1:3, NA), nrow = 2))) fill_na(nlists(nlist(x = c(2, NA)), nlist(x = c(NA_real_, NA)))) # }
Run the code above in your browser using DataLab