R/utilities.R
handle_missing_values.Rd
Handle missing values in a data frame
handle_missing_values(data)
A data frame to process
A data frame with missing values handled:
For categorical variables (factor/character): NA values are converted to a factor level "NA"
For numeric variables: NA values are replaced with the mean of the column