I want to find all the possible samples of two classes from the 5 different classes. I am trying this:
x <- c(A = 23, B = 21, C = 29, D = 17, E = 18)
mean (x)
sd (x)
sample(x)
sample(x, 2, replace = FALSE, prob = NULL)
sample(x, 5, replace = FALSE, prob = NULL)
but I think it is wrong it does not give me the number of all the possible samples