Coding Assignment Guide
Coding Assignment Guide
scripts containing:
An appropriate project structure
Commented scripts that run without error messages, for extracting and summarizing
data, using the routines you practice in this module.
The data necessary to run these scripts.
Data collection > organise (structure, load, merge) > process (extract, summarise, transpose) >
analyse (transform, plot, run statistics)
Followings should be used to demonstrate the abilities learned from the course (when applicable):
- Structures: data.frame
- R packages (i.e., tidyverse, dplyr)
- IF, If else function
- Logical operators (==, !=, <, <=, etc)
- Coding conventions: formatting
- Writing functions
- Organise project: load and merge = For a better overview, we use a master R script that links
all single data processing steps and serves as starting point each time you open your project.
Libraries/packages you may have to attach. Work environment settings (e.g., for the working
directory). Data processing steps. (example excersie was: set.seed(1234321),
source(paste(workspace, "1_prepare.R", sep = "/"))
- Extract and summarise (examples from course):
The dplyr package offers the functions group_by() and summarise() for this purpose.
Marking:
- The code runs without errors, is relevant, logical, and well developed throughout. The code addresses all aspects
of the assignment.
High marks will be given to projects that solve complex coding problems exceptionally elegantly.
- The project follows an appropriate structure and coding conventions throughout. Comments are clear and
concise, and relevant throughout.
High marks are given for exceptionally clear projects with concise comments that make following even complex code
easy to understand