Description Usage Arguments Value Examples
Estimate the age of a person based on their first name.
1 |
names |
First names as a character vector. Names are case insensitive. |
base_year |
Year that the age is calculated as of. |
age_range |
Limit the range of possible ages that the name could come from. This could be useful if you know, for example, that the name is of an adult. If missing, all ages will be considered. |
Returns a data frame containing the results of predicting the age.
There will be one row per name found in the babynames
dataset,
sorted in alphabetical order.
They include the following:
name |
The name for which the age has been predicted. |
n |
Number of people born with the name between the age range for the given reference year |
n_alive |
Estimate of the number of people alive with the name between the age range for the given reference year |
mean, sd, q1, median, q3 |
The mean, standard deviation, first quartile, median, and third quartile of the age for the names for the given age range and reference year. |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.