Skip to content

Commit

Permalink
Documentation completed for imputation function
Browse files Browse the repository at this point in the history
  • Loading branch information
jachang0628 committed Mar 6, 2021
1 parent 110c71b commit fc9733d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions R/imputation.R
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){
}

0 comments on commit fc9733d

Please sign in to comment.