University School of Automation & Robotics

Personal resource archive for various courses.

q7.r

grp <- seq(0, 5)
f <- c(5, 35, 2, 24, 25, 35)
x <- rep(grp, f)
mad(x)
mad(x) / median(x)