Refer to the following: - https://stat.ethz.ch/R-manual/R-devel/library/stats/html/friedman.test.html