imputeMyData {shinyr} | R 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")
[Package shinyr version 0.4.2 Index]