Description Usage Arguments Value Examples
This function calculate the difference between two date in terms of unit of time, and age can be obtained when ‘year’ is specified as unit argument.
1 |
birthday |
a character or character vector specifying birthday or base date. |
targetdate |
a character or character vector specifying target date. |
unit |
a character specifying unit for calculating the difference between the two dates. Values of "year", "month" and "day" are supported. |
a vector of age
1 | calcAge("1963-2-3")
|
[1] 55
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.