Description Usage Arguments Details Value Author(s) Examples
View source: R/impute_my_data.R
Impute for missing values in given column in a given data by given method.
1 | imputeMyData(df, col, FUN)
|
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) |
imputeMyData
data frame after imputing the values
Jayachandra N
1 2 3 | x <- head(iris)
x$Sepal.Length[1] <- NA
imputeMyData(x, "Sepal.Length", "mean")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.