dt_empty2na: convert columns with empty character to NA

dt_empty2naR Documentation

convert columns with empty character to NA

Description

coerce "" in columns of class "character" to NA_character_

Usage

dt_empty2na(dt)

Arguments

dt

data.table

these_cols

NULL by default, will select columns of character class, otherwise will be specified

Value

A data.table


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.