10 Matching Annotations
  1. Feb 2024
    1. imd_decile %in% 1:3 ~ "Deprived", TRUE ~ "Not deprived"

      Would recode as:

      imd_decile %in% 1:3 ~ "Deprived", imd_decile %in% 4:10 ~ "Not deprived", TRUE ~ "ERROR"

      This way, you get to check incorrect inputs.

    2. Tips for effective R scripting

      Need to highlight that R and RStudio (note the lack of space) are separate entities, it's possible, though unlikely that someone might have R installed but not RStudio.

    3. Making edits with code enables you to keep track of all the steps you have taken.

      Creating a script that processes the raw data and creates a new version enables you to keep track of all the steps you have taken.

    1. Once this is installed (which only needs to be done once), you can click the ‘Addins’ button. Then scroll down to the ‘STYLER’ section and click ‘style active file’.

      Once this package is installed (which only needs to be done once), you use an 'Addin' in RStudio. Click the ‘Addins’ button, scroll down to the ‘STYLER’ section and click ‘style active file’.