Skip to content

Instantly share code, notes, and snippets.

@steveharoz
steveharoz / normalize.R
Last active March 24, 2016 04:50
normalize subject data
# install.packages('dplyr')
# install.packages('tidyr')
# install.packages('ggplot2')
library(dplyr)
library(tidyr)
library(ggplot2)
# make some trials
data = expand.grid(
subjectID = seq(1, 1.5, length.out=4),