normalize: Normalizes a Numeric Matrix by Columns.
Description
For a variable considered to be used in Dynamic Model Averaging (or Dynamic Model Selection, etc.), sometimes it is desirable to have all its values between 0 and 1. This function rescales the values to fit between 0 and 1.
If the argument is not a matrix, the function tries to convert the object into a matrix. For example, it works smoothly for xts objects.