[R] list

From: Paul Adams <pma3622_at_yahoo.com>
Date: Mon, 28 Jul 2008 22:00:03 -0700 (PDT)

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

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:

Wilcoxon signed rank test
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.



	[[alternative HTML version deleted]]


R-help_at_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. Received on Tue 29 Jul 2008 - 05:03:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jul 2008 - 10:32:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive