1. t-test
x<-c(49, 50, 47.5, 49.6, 48.6, 49.0, 48.6, 49, 49.4, 50.2);
t.test(x,alternative=c("two.sided"), mu=50);
2. Wilcox test
x <- c(1.83, 0.50, 1.62, 2.48, 1.68, 1.88, 1.55, 3.06, 1.30); y <- c(1.67, 0.647, 1.35, 2.05, 1.06, 1.29, 1.06, 3.14, 1.09); wilcox.test(x, y, paired = TRUE, alternative = "greater");
3. Kolmogorov-Smirnov test
ks.test(rnorm(100,0,1), runif(100,-4,4));
4. Shapiro-Wilk test for normality
shapiro.test(rnorm(100,0,1));
shapiro.test(runif(100,-4,4));