metric.scores - input parameter col_IndexRegion should be col_IndexClass

Open
#103 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
backend

Research direction

Find the metric.scores function and inspect its parameter list and callers, including the Shiny apps mentioned in the issue. Add col_IndexClass in the current col_IndexRegion slot and move col_IndexRegion to the end to preserve compatibility; done means existing callers still work and the new parameter uses Index_Class.

Written by the indexing model from the issue text.

Description

Describe the bug
Function metric.scores input parameter col_IndexRegion should be col_IndexClass

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Additional context
When changed both BioMonTools and BCGcalc packages to use "Index_Class" and not "Index_Region" or other name (e.g., Site_Class) missed this one.

Will need to add a new input parameter to avoid breaking existing code that relies on the function (e.g., Shiny apps).

Place new variable, col_IndexClass, in the same slot and move col_IndexRegion to the end.

Dominant language
R
Stars
15
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leppott/BioMonTools

All issues in leppott/BioMonTools

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.