imputeMyData: Impute My Data

View source: R/impute_my_data.R

imputeMyDataR Documentation

Impute My Data

Description

Impute for missing values in given column in a given data by given method.

Usage

imputeMyData(df, col, FUN)

Arguments

df

data frame to impute

col

a column name of data frame to impute

FUN

a function to be used for imputing values one of(mean, median, sum, min, max)

Details

imputeMyData

Value

data frame after imputing the values

Author(s)

Jayachandra N

Examples

x <- head(iris)
x$Sepal.Length[1] <- NA
imputeMyData(x, "Sepal.Length", "mean")

shinyr documentation built on April 4, 2025, 1:50 a.m.