dt_na2zero: convert columns with NA to zeros

dt_na2zeroR Documentation

convert columns with NA to zeros

Description

coerce NA in columns of class "numeric"/"integer" to FALSE

Usage

dt_na2zero(dt, these_cols = NULL)

Arguments

dt

data.table

these_cols

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

Value

A data.table


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