R 按照某一列的值重新排序dataframe

library(data.table)
setorder(setDT(Spot_manifest)[, barcode := colnames(count)], barcode)
library(data.table)
setorder(setDT(DF)[, index := factor(index, levels = ord)], index)

 

posted on 2020-12-07 08:32  若流芳千古  阅读(1048)  评论(0编辑  收藏  举报

导航