Learn R Programming

dataMojo (version 1.0.0)

fill_NA_with: Fill missing values

Description

Fill missing values

Usage

fill_NA_with(dt, fill_cols, fill_value)

Value

data table which NAs are filled

Arguments

dt

input data table

fill_cols

filter by this columns

fill_value

fill NA with this value

Examples

Run this code
data("dt_missing")
fill_NA_with(dt_missing, fill_cols = c("Full_name"), fill_value = "pending")

Run the code above in your browser using DataLab