R4EPI / sitrep

Report templates and helper functions for applied epidemiology
https://r4epi.github.io/sitrep/
GNU General Public License v3.0
40 stars 14 forks source link

Post Hackathon To-Do List #141

Closed aspina7 closed 5 years ago

aspina7 commented 5 years ago

I have attempted here to structure all the comments from the hackthon in to tasks. It is broken down in to categories which include: Training Function Issues Template structure Installing / updating R, R studio, Sitrep & packages Data Cleaning Data Analysis

Will try and have disease and chunk in square brackets (or function/action where appropriate) at beginning of bullet point and then link to the comment at end. If it generally applies to all templates then instead of disease will write sitrep.

Will mark the hackthon issues list with googly-eyes emoji once have included comment here.

Training / wiki

Function issues

Template structure

Installing / updating R, R studio, Sitrep & packages

Reading data

Data Cleaning

Data Analysis

kdoyle514 commented 5 years ago

[sitrep - chunk layout] consider breaking up code in to smaller chunks. Also consider not having code commented out (hard for overview) - instead have chunks called "*** ALTERNATIVE OPTION" (where can turn on and off eval = TRUE/FALSE). comment

Do we want to do this? Seems like it would be even more confusing than commenting...in some places, you uncomment, in others, you add TRUE/FALSE.

aspina7 commented 5 years ago

Fix code first and then later discuss breaking up and reorganising.

On Tue, 6 Aug 2019, 20:25 Kate Doyle, notifications@github.com wrote:

[sitrep - chunk layout] consider breaking up code in to smaller chunks. Also consider not having code commented out (hard for overview) - instead have chunks called "*** ALTERNATIVE OPTION" (where can turn on and off eval = TRUE/FALSE). comment

Do we want to do this? Seems like it would be even more confusing than commenting...in some places, you uncomment, in others, you add TRUE/FALSE.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/R4EPI/sitrep/issues/141?email_source=notifications&email_token=AEL7IJ7J2VDJ5E6RDEFZ4F3QDG623A5CNFSM4H7NWNZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3WBHQI#issuecomment-518788033, or mute the thread https://github.com/notifications/unsubscribe-auth/AEL7IJ7BY62A5XPXGBNLMGDQDG623ANCNFSM4H7NWNZQ .

kdoyle514 commented 5 years ago

[Sitrep - epitrix::clean_colnames] Need to add explanations of how to protect columns from being removed, using e.g. `protect = "#"´comment.

Leaving this out as I think this was an edge case (in that I raised the issue) and will just add more confusion.

kdoyle514 commented 5 years ago

[Sitrep - renaming vars] making non-DHIS datasets fit is very painful. Add explanation of sitrep::msf_dict_rename_helper() - also add to this function to say whether those variables are OPTIONAL or NECESSARY for the template to run. Consider also changing variables to alphabetic order. Consider integrating the codebook package

Moved to function issues.

kdoyle514 commented 5 years ago

[sitrep epicurves] add example of how to filter (drop) years (levels) using forcats::fct_drop() comment

To do this, you actually need to do when filtering your data, as you can't do it once you've got the epiweek as factors. Would say this is an edge case and we don't need to include.

aspina7 commented 5 years ago

[Sitrep - epitrix::clean_colnames] Need to add explanations of how to protect columns from being removed, using e.g. `protect = "#"´comment.

Leaving this out as I think this was an edge case (in that I raised the issue) and will just add more confusion.

agree - pretty niche. Also as moving towards dictionaries this shouldnt be an issue (he said naiively, comentator: it was going to be an issue). Maybe @nsbatra a thing for training? or common errors/faqs? Or we just ignore it entirely and deal with it when it comes up ...

aspina7 commented 5 years ago

[sitrep epicurves] add example of how to filter (drop) years (levels) using forcats::fct_drop() comment

To do this, you actually need to do when filtering your data, as you can't do it once you've got the epiweek as factors. Would say this is an edge case and we don't need to include.

Maybe another thing for training? @nsbatra - how to filter out previous years, or drop factor levels?

aspina7 commented 5 years ago

[updating sitrep] Add to FAQ that you may need to restart R when installing or updating (issue of removing prior installations and removing previously present general outbreak template). You may also need to install each of the packages one-by-one if it gets stuck. comment comment 2 comment 3

@nsbatra not sure if this is already on the r4epis site in the intro/getting started bit - if not could you chuck it in there plase?

aspina7 commented 5 years ago

[sitrep::gen_data] sometimes genertes explicit missing variable for gender and other times not (potentially depending on disease??) comment

@zkamvar cant seem to replicate this - maybe its an issue from linelist::clean_variable_spelling?

aspina7 commented 5 years ago

[Sitrep::gen_population] fix the example props used in templates using the excel file with standardised agegroupings / props that annick sent. Generally discuss with annick what age groupings should be used in templates. comments. Cross reference with gen_population point from functions heading.

@kdoyle514 - added an extra bullet point here. We need to fix the age groups in the templates. Will change the defaults in gen_data too. Forwarding you the excel sheet now

nsbatra commented 5 years ago

[updating sitrep] Add to FAQ that you may need to restart R when installing or updating (issue of removing prior installations and removing previously present general outbreak template). You may also need to install each of the packages one-by-one if it gets stuck. comment comment 2 comment 3

@nsbatra not sure if this is already on the r4epis site in the intro/getting started bit - if not could you chuck it in there plase?

Sorry, closed this before I meant to. @aspina7 I added this content to the FAQ page.

nsbatra commented 5 years ago

[sitrep epicurves] add example of how to filter (drop) years (levels) using forcats::fct_drop() comment

To do this, you actually need to do when filtering your data, as you can't do it once you've got the epiweek as factors. Would say this is an edge case and we don't need to include.

Maybe another thing for training? @nsbatra - how to filter out previous years, or drop factor levels?

@aspina7 I added a section on factors and fct_drop into the Advanced Functions subpage of R Basics. I am also going to talk through the epicurve years issue in the walk-through.

nsbatra commented 5 years ago

[Sitrep - epitrix::clean_colnames] Need to add explanations of how to protect columns from being removed, using e.g. `protect = "#"´comment.

Leaving this out as I think this was an edge case (in that I raised the issue) and will just add more confusion.

agree - pretty niche. Also as moving towards dictionaries this shouldnt be an issue (he said naiively, comentator: it was going to be an issue). Maybe @nsbatra a thing for training? or common errors/faqs? Or we just ignore it entirely and deal with it when it comes up ...

@aspina7 I have added a note about this in the walk-through and will add it to FAQ page as well.

aspina7 commented 5 years ago

closing this as we have finished everything within the scope - leftovers are in nice-to-haves