[NM-90] Add structure for functions to return sample size for programme data #455
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We want to add sample sizes into the choropleth tooltips for input data. For survey this is ok and we will show
n_observations
column. It is less simple for ANC and ART data.I've added template for a couple of functions to add this to the data.
art_prepare_hintr
andanc_prepare_hintr
(we had a similar function previously for ANC so I have modified that)Can @jeffeaton or @rtesra fill in the body of these functions? I've added a basic test too which is failing at the moment. It should pass after we implement the new functions.
Please feel free to change name, column name or anything if there is something better.
Thinking about this the ANC data is in wide format,
so I wonder if we can add the sample size into this when different indicators are along the top? Without changing the structure to long format. We should think about that because it will make the data much larger to transfer.