blank2NA: Replace Blanks in a dataframe

Description Usage Arguments Value See Also Examples

View source: R/blank2NA.R

Description

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

Usage

1
blank2NA(dataframe, missing = NA)

Arguments

dataframe

A dataframe with blank (empty) cells.

missing

Value to replace empty cells with.

Value

Returns a data frame with blank spaces replaced.

See Also

rm_row

Examples

1
2
3
4
5
6
7
8
9
## 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)

qdap documentation built on May 15, 2018, 9:04 a.m.