Fundamental statistics is the values describe the character of the data. It includes average, maximum, minimum, median, variance, standard variance, and so on. To begin with, input the following data for now, and then plot them.
x <- c(2,2,3,4,5,6,6,6,6,7,8,9) y <- c(8,7,7,5,8,5,4,3,4,3,2,1) plot(x,y)
R has the functions to calculate fundamental statistics. Following samples calculate average, maximum, minimum, median, variance and standard variance in order.
mean(x) max(x) min(x) median(x) var(x) sd(x)
R can calculate them easily.
var(x,y) cor(x,y)