I have run a wilcox test on a dataframe and I have returned to me data which I am wanting to sort and/or pick the max. I have tried the following code to pick the max: v<-wilcox.test.run w<-max(v,na.rm=FALSE) I have also tried w<-pmax(p-value,na.rm=FALSE) for the second line and this returns the following error:invalid 'type' (list) of argument This error is understandable because I am trying to find the max p-value from a list of 100 with the following output: $g100 Wilcoxon signed rank test data:newX[,i] V=741, p-value=8.051e-08 I want to be able to pull only the maximum p-value from this output and the $g that matches the p-value by using max.Any help would be appreciated. Thanks Paul
[[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.