age_format | R Documentation |
Takes a character string (or list) representing an age as years-months (e.g. 13-06 for 13 years, 6 months) and converts it to a character value (13.5) or a list of values representing ages in years.
age_format(x)
x |
A character vector of ages in yyy-mm format (e.g. 93-03) to be converted to years (93.25) |
returns the value of the string x
which represents an age in
yyy-mm format (93-03) and converts it to years (93.25)
age_format_helper
age_format
uses
age_format_helper
age_format("13-06")
age_format(c("13-06", "25-03", NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.