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

Selecting 'county' as the area type for calculating cancer incidence will always produce an error #126

Open
vsriram24 opened this issue Sep 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vsriram24
Copy link

Regardless of the area selected (United States or an individual state), selecting 'county' as the area type will always generate an error.

Example code:

cancerprof::incidence_cancer(
  area = "United States",
  areatype = "county",
  cancer = "all cancer sites",
  race = "All Races (includes Hispanic)",
  sex = "both sexes",
  age = "all ages",
  stage = "all stages",
  year = "latest 5 year average"
)

Example output:

Error in 'mutate()':
! Can't transform a data frame with 'NA' or '""' names.
Backtrace:
 1. cancerprof::incidence_cancer(...)
 4. dplyr:::mutate.data.frame(...)
@vsriram24 vsriram24 added the bug Something isn't working label Sep 6, 2024
@vsriram24
Copy link
Author

This is definitely a bug in the {cancerprof} package and not the State Cancer Profiles API because entering the above parameters in the State Cancer Profiles website will generate a corresponding map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant