如何用指数对R排序

时间:2018-08-22 14:03:50

标签: sorting exponential

我正在尝试对组测试中的所有p值进行排序,但所有指数均在末尾列出。我怎样才能解决这个问题?

> Taxa.pval.sorted[,2]
 [1] "0.00167626094118687"  "0.00248999870911711"  "0.00822269280799168"  "0.0093014120175303"  
 [5] "0.0111587232925145"   "0.0128804224086987"   "0.0148140234287324"   "0.022368412129759"   
 [9] "0.0461051651726315"   "0.0515248334920197"   "0.0807459512364267"   "0.0835804351353234"  
[13] "0.084709619697795"    "0.0905847280194143"   "0.101066938013902"    "0.102908178858616"   
[17] "0.145595177042098"    "0.14812131727178"     "0.163643440639893"    "0.248359800712937"   
[21] "0.297657790276333"    "0.312812752582261"    "0.472951963915508"    "0.617272811805465"   
[25] "0.636459206272395"    "0.659896252423425"    "0.667905453968286"    "0.732196914589969"   
[29] "0.734021230171262"    "0.838547554160196"    "0.838547554160196"    "0.838547554160196"   
[33] "0.838547554160196"    "0.838547554160196"    "0.838547554160196"    "0.838547554160196"   
[37] "0.838547554160196"    "0.838547554160196"    "0.838547554160196"    "0.838547554160196"   
[41] "0.838547554160196"    "0.838547554160196"    "0.838547554160196"    "0.838547554160196"   
[45] "0.846626488364256"    "0.846968975711138"    "0.857204547504364"    "0.868793442111964"   
[49] "0.889182223671457"    "0.908642126745589"    "0.912813225663016"    "0.926507816703772"   
[53] "0.926968956874878"    "0.939838969524129"    "0.948467459255275"    "0.953474382470617"   
[57] "0.980766287949209"    "0.983050683381981"    "0.986050746847044"    "0.986924263547609"   
[61] "0.986981766060311"    "0.987718179790042"    "0.989434827736423"    "0.990316764059558"   
[65] "0.993558825951564"    "0.995407477249578"    "0.99825084036274"     "0.998572876358503"   
[69] "0.999928765637819"    "0.999999996697359"    "3.97504712530039e-05" "4.9975842089324e-06" 

谢谢,米特拉

0 个答案:

没有答案