Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vsriram24 opened this issue Sep 6, 2024 · 1 comment
Open

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

vsriram24 opened this issue Sep 6, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@vsriram24
Copy link

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
@vsriram24 vsriram24 added the bug Something isn't working label Sep 6, 2024
@vsriram24
Copy link
Author

Just realized that this code works if sex is specified as 'females' rather than 'female'. Documentation should be corrected.

@vsriram24 vsriram24 added documentation Improvements or additions to documentation and removed bug Something isn't working labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant