Skip to content
Prev 347 / 7420 Next

progamming functions help

Stephen Cole wrote:
x <- c(20,18, 45, 16, 47, 47, 15, 26, 14,14,12,16,35,27,18,94,16,26,
26,30)

matrix(sample(x), ncol=2)
## All possible pairs
uu <- expand.grid(x,x)

## the variance on two values? are you sure?
## technically:
apply(uu, 1, var) 


HTH

Cl?ment