Replace Blanks in a dataframe

Usage

blank2NA(dataframe, missing = NA)

Arguments

dataframe
A dataframe with blank (empty) cells.
missing
Value to replace empty cells with.

Replace Blanks in a dataframe

Value

Returns a data frame with blank spaces replaced.

Description

Replaces blank (empty) cells in a dataframe. Generally, for internal use.

Examples

## <strong>Not run</strong>: # set.seed(15) # dat <- data.frame(matrix(sample(c(month.abb[1:4], ""), 50, TRUE), # 10, byrow = TRUE), stringsAsFactors = FALSE) # # dat # blank2NA(dat) # ## <strong>End(Not run)</strong>

See also

rm_row