# correlaction between word frequency and word familiarity
# in the data set ratings
library(languageR)
# Pearson's r is the default
cor.test(ratings$Frequency,ratings$meanFamiliarity)
# Spearman's rho
cor.test(ratings$Frequency,ratings$meanFamiliarity,method=spearman)
# Kendall's tau
cor.test(ratings$Frequency,ratings$meanFamiliarity,method=kendall)