Description Usage Arguments Value Examples
Takes a dataframe, subsets selected columns and imputes missing values and returns a data frame.
1 2 3 4 5 6 7 | divide_and_fill(
dataframe,
cols = NULL,
strategy = "mean",
random = FALSE,
verbose = 0L
)
|
dataframe |
Dataframe from which to take columns and check for missing values. |
cols |
List of columns to perform imputation on. By default, NULL(perform on all numeric columns). |
strategy |
string. imputation strategy, one of: 'mean', 'median', 'random'. By default, 'mean'. |
random |
boolean, optional When random == True, shuffles data frame before filling. By default, False. |
verbose |
integer, optional Controls the verbosity of the divide and fill. By default, 0. |
data.frame Data frame obtained after divide and fill on the corresponding columns.
1 2 3 4 | ## Not run:
divide_and_fill(example_dataframe)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.