Skip to contents

Prints the age range for a specific age, when following the "Half-Your-Age-Plus-Seven" Rule

Usage

age_range(age)

Arguments

age

numeric, the age the the output will be relative to

Value

The ages that are the appropriate age range for the age entered

Examples

age_range(28)
#> lower_limit upper_limit 
#>          21          42 

age_range(13)
#> Error in age_range(13): Error: all ages must be 14 or greater

age_range(85)
#> lower_limit upper_limit 
#>        49.5       156.0