Function that converts a Date class vector of birth date values to numeric age values. This function is preparative to the a2g function.
Usage
d2a(bd)
Value
Returns a numeric class vector object of ages if the function is provided a Date class object. The function will otherwise return an error message stating that the function requires a Date class object.
Arguments
bd
Vector of Date class values. The date "yyyy-mm-dd" format is expected.