OptionalalternativeAlternative hypothesis: "two.sided", "less" or "greater". Default "two.sided".
Unambiguous abbreviations such as "two", "l" and "g" are accepted, as in R.
OptionalconfConfidence level of the interval (Pearson only; the interval needs at least 4 pairs). Default 0.95.
OptionalcontinuityApply a continuity correction when the approximation is used (Kendall and Spearman). Default false.
OptionalexactCompute an exact p-value (Kendall and Spearman). Default: as in R, exact when there are
no ties and n < 50 (Kendall) or n <= 1290 (Spearman). With ties the approximation is
always used. Kendall's exact distribution takes about n^3 / 2 steps: for n above 1290 (about 5 s)
exact: true without ties is a RangeError (R computes it however long it takes).
OptionalmethodCorrelation coefficient to compute. Default "pearson". Unambiguous abbreviations are accepted.
Options for corTest.