Using the "Half-Your-Age-Plus-Seven" Rule, the function returns the "verdict" given two ages for the members of a couple
Arguments
- age1
numeric, the age of the first member of the couple
- age2
numeric, the age of the second member of the couple
Value
The verdict about the couple's ages using the "Half-Your-Age-Plus-Seven" Rule
Examples
check_couple(70, 30)
#> [1] FALSE
check_couple(-10, 19)
#> Error in check_couple(-10, 19): Error: Age must be 14 or older for both individuals
check_couple(50, 80)
#> [1] TRUE