cor.test(x, y, alternative="two.sided", method="pearson")
If method="kendall" then Kendall's tau using ranks is computed.
If method="spearman" the rank correlation coefficient is used. See the printed help file in the S-PLUS Reference Manual for the estimators formulae.
murder <- state.x77[,"Murder"] illit <- state.x77[,"Illiteracy"] cor.test(murder,illit,method="k") # Transformations can be used cor.test(log(x),log(y),alt="gr")