fix_blanks_with_na: Replace blanks with NA in a data frame

View source: R/fix_blanks_with_na.R

fix_blanks_with_naR Documentation

Replace blanks with NA in a data frame

Description

This function replaces all empty string values ("") in a given data frame with NA values.

Usage

fix_blanks_with_na(df)

Arguments

df

A data frame to be processed.

Value

The data frame with empty string values replaced with NAs.

Examples

df <- data.frame(x = c("", "foo", ""), y = c("", "", "bar"), z = c(1, 2, 3))
fix_blanks_with_na(df)


fixr documentation built on April 4, 2025, 12:30 a.m.