0% found this document useful (0 votes)
20 views

Coding Assignment Guide

The document outlines requirements for a project involving analyzing data in R. It specifies including commented R scripts to extract and summarize data using techniques from the course, as well as any necessary data and packages. The workflow should demonstrate data collection, organization, processing, analysis, and plotting abilities learned in the course.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Coding Assignment Guide

The document outlines requirements for a project involving analyzing data in R. It specifies including commented R scripts to extract and summarize data using techniques from the course, as well as any necessary data and packages. The workflow should demonstrate data collection, organization, processing, analysis, and plotting abilities learned in the course.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

o Zipped R project: The complete R project as a zipped folder (including all folders, data, and R

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 can also be: Built-in R data such as mtcars or iris

• Retrieve full list with data()

• Load built-in data set with data(name), for example data(mtcars)

Workflow should show:

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.

- Join, transpose and transform


- Inner_join, full_join, left_join, right_join
- Pivot_longer(), pivot_wider()
- Pipe operator %>%
- Transforming: centring, z-transformation, log-transformation
- Plotting data with histograms (ex, hist(transformedSpeedDf$speed, main = "No
Transformation", xlab = "Speed (reaction time in ms)")
- Plotting: ggplot, creating plot, customising plot (theme_bw()) apatheme

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

You might also like