Skip to content

Cancer Incidence: specifying sex causes 'invalid input error' #127

Description

@vsriram24

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions