Nonparametric Hypothesis Testing:Rank and Permutation Methods with Applications in R