Tests the hypothesis that the Spearman correlation between two ranges is different from some 0. Alternatives are Alt.less (spearmanCor(range1, range2) < 0), Alt.greater (spearmanCor(range1, range2) > 0) and Alt.twoSided (spearmanCor(range1, range2) != 0).
A TestRes containing the Spearman correlation coefficient and the P-value for the given alternative.
Exact P-value computation not yet implemented. Uses asymptotic approximation only. This is good enough for most practical purposes given reasonably large N, but is not perfectly accurate. Not valid for data with very large amounts of ties.