Friedmann Test with Wilcoxon signed rank test: friedman.test(y, ...) y either a numeric vector of data values, or a data matrix. groups,a vector giving the group for the corresponding elements of y if this is a vector; ignored if y is a matrix. If not a factor object, it is coerced to one. blocks a vector giving the block for the corresponding elements of y if this is a vector; ignored if y is a matrix. If not a factor object, it is coerced to one. formula a formula of the form a ~ b | c, where a, b and c give the data values and corresponding groups and blocks, respectively. wilcox.test(x, y, paired=TRUE) x numeric vector of data values. y an optional numeric vector of data values