# Example data
data <- c(10, 20, 30, 40, 50, NA)
# Min-max normalization
normalize(data, method = "min_max")
# Z-score normalization
normalize(data, method = "z_score")
# Default behavior (min-max normalization)
normalize(data)
Run the code above in your browser using DataLab