input_nas: Input NAs in a data.table with the column's median, mean or...

Description Usage Arguments Value

View source: R/data_manipulation.R

Description

Input NAs in a data.table with the column's median, mean or zeros

Usage

1
2
3
Notice that dt will be modified dinamycally with the ':='
operator. Make sure you make a hard copy of dt if you want to keep the
original data.table

Arguments

dt

Data table

cols

Columns from dt

treatment

Accepts "zero", "mean", "median"

Value

Dinamically transforms dt with columns in vars treated to input NA's


luisalejandrolee/utilucho documentation built on May 17, 2019, 7:58 a.m.