powered by
Replaces blank (empty) cells in a dataframe. Generally, for internal use.
blank2NA(dataframe, missing = NA)
Returns a data frame with blank spaces replaced.
A dataframe with blank (empty) cells.
Value to replace empty cells with.
rm_row
if (FALSE) { set.seed(15) dat <- data.frame(matrix(sample(c(month.abb[1:4], ""), 50, TRUE), 10, byrow = TRUE), stringsAsFactors = FALSE) dat blank2NA(dat) }
Run the code above in your browser using DataLab