According to the documentation, we should be able to specify 'both sexes', 'male', or 'female' as our value for the sex parameter. However, output is generated only for 'both sexes'.
Example input:
allStates = cancerprof::incidence_cancer(
area = "WA",
areatype = "hsa",
cancer = "all cancer sites",
race = "All Races (includes Hispanic)",
sex = "female",
age = "all ages",
stage = "all stages",
year = "latest 5 year average"
)
Example output:
Error in handle_sex(sex) :
Invalid sex input, please check the documentation for valid inputs
According to the documentation, we should be able to specify 'both sexes', 'male', or 'female' as our value for the sex parameter. However, output is generated only for 'both sexes'.
Example input:
Example output: