base_impute: Basic (naive) imputation for missing values in a data.table.

Description Usage Arguments Examples

View source: R/base_impute.R

Description

Basic (naive) imputation for missing values in a data.table.

Usage

1
base_impute(dt, type = "median", impute_col, group_by = "")

Arguments

dt

A data.table with a column of with missing values.

type

The type of imputation to be done; options are 'mean', 'median', and 'zero'.

impute_col

The column on which to perform imputation.

group_by

The columns to group the imputation method by.

Examples

1
base_impute(bee.data, "median", "TOTAL_COUNT", c("MONTH", "DAY"))

chaosreader/stat_6550_group_project documentation built on Dec. 19, 2021, 3:01 p.m.