R语言:Some 'from' names in value not found on 'x' 报错

升级了dplyr后运行命令inter=inter %>% rename("gene"="V4") 就一直报错:Some 'from' names in value not found on 'x',如下所示:

Error in rename(., gene = "V4") :
Some 'from' names in value not found on 'x': gene

解决方案,把rename换成dplyr::rename

inter=inter %>% dplyr::rename("gene"="V4")

posted @ 2023-04-14 21:03  橙子牛奶糖  阅读(347)  评论(0编辑  收藏  举报