Project Template

Why Use a Project Template?

Your collaborators and future you will thank you:

  • Easier to jump into someone else’s project

  • Easier to share code

  • Feel more confident about your results

  • Which script did I run to import the data?

  • If I update the data, how do I re-run the processing?

  • Which script do I tweak to make an adjustment?

  • Where did I get the data from in the first place?

What Goes into a Typical Project?

Jump into our Google Doc whiteboard.

Project Principles

  1. Use common folder names to put things in a consistent place

  2. Never overwrite your source data

  3. Document your process with code or words

  4. If you have multiple scripts, use 00_, 01_, etc. to indicate the order they should run.

Project Template Layout

Project Template Starter

  • New Project
    • code
    • data
      • raw
      • processed
    • deliverable
    • README.Rmd
      • Analyst and Requester
      • Data Request
      • Document external data sources
      • Document project process

Project

Create a new project and use it to complete the following task.

Data Request: The PI would like to know the number of injections by drug that each patient received for injections given starting in 2010.

Use the data from our Excel sheets of diagnsoses and therapies.

https://git.io/fpez6

Import Data Starter Script

Example of requested data output.
MRN CHEMOCAT n
161623 BELIMUMAB 2
105705 LEUCOVORIN 1
106355 ABARELIX 1
133111 CARFILZOMIB 1
161623 ALEMTUZUMAB 1