参考问题Order color based on Hue, Saturation, Value in R
我有以下数据框,希望根据h,s和最后v进行排序
> library(dplyr)
> tHSVcol
h s v
[1,] 0.6229508 0.6421053 0.3725490
[2,] 0.2767296 0.5145631 0.8078431
[3,] 0.1323283 0.7928287 0.9843137
[4,] 0.9790476 0.9510870 0.7215686
[5,] 0.9093567 0.5480769 0.4078431
执行tHSVcol %>% arrange(desc(h))
时,我得到
Error in UseMethod("arrange_") : no applicable method for 'arrange_' applied to an object of class "c('matrix', 'double', 'numeric')"
我在做什么错了?
答案 0 :(得分:1)
假设您的矩阵称为resultat = getIntent().getExtras().getStringArrayList("result"); <br>
,则可以执行以下操作:
m