made using Leaflet

Programming and Statistical Modeling in R

This is a public website where you can share notes or chunks of code so thBack to course webpageat other people in the class can use them.

It is organized by Lecture and exercise.

Lectures

Code and notes


Lectures

Code and notes

Project organization and workflow

Add notes here, they will be visible to everyone


Exercises

Code and notes

Exercises

Code and notes

Project organization and workflow

Add stuff here


Loops exercise

Modify the above to print hello 5 times


Functions

mean_sd <- function(x, na.rm = TRUE) {

res <- data.frame( mean = mean(x, na.rm = na.rm), sd = sd(x, na.rm = na.rm) )

ggplot2


#one version:

Data structures

saving an R figure

Dates and strings

Tidying and merging