blank2NA | R Documentation |
Replaces blank (empty) cells in a dataframe. Generally, for internal use.
blank2NA(dataframe, missing = NA)
dataframe |
A dataframe with blank (empty) cells. |
missing |
Value to replace empty cells with. |
Returns a data frame with blank spaces replaced.
rm_row
## Not run:
set.seed(15)
dat <- data.frame(matrix(sample(c(month.abb[1:4], ""), 50, TRUE),
10, byrow = TRUE), stringsAsFactors = FALSE)
dat
blank2NA(dat)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.