-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation completed for imputation function
- Loading branch information
1 parent
110c71b
commit fc9733d
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
#' Imputing Missing Data | ||
#' | ||
#' This function will impute missing data in a tibble/dataframe given the chosen method(mean, median, most_frequent) | ||
#' | ||
#' @param fit_data list | ||
#' @param fill_data list | ||
#' @param method character | ||
#' | ||
#' @return list | ||
#' @export | ||
#' | ||
#' @examples | ||
#' test_df <- data.frame('a' = c(1,NA,3), 'b' = c(5,6,NA), 'c' = c(NA,1,10)) | ||
#' test_df_imputed <- imputation(test_df, test_df, 'mean) | ||
imputation <- function(fit_data, fill_data, method){ | ||
} |