我有两张桌子:
> head(entrez1)
entrez en affy
1007_s_at "780" 780 "1007_s_at"
1053_at "5982" 5982 "1053_at"
117_at "3310" 3310 "117_at"
121_at "7849" 7849 "121_at"
1255_g_at "2978" 2978 "1255_g_at"
1294_at "7318" 7318 "1294_at"
> head(tf)
ENSP entrez
1 ENSP00000379387 353274
2 ENSP00000370532 2971
3 ENSP00000355175 22873
4 ENSP00000253008 59335
5 ENSP00000379106 6720
6 ENSP00000291582 326
> z=merge(entrez1,tf,by.x="en",by.y="entrez")
Error in sort.list(bx[m$xi]) :
'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?
我尝试了merge
他们的变体(尝试将tf$entrez
转换为字符串,将entrez$entrez
转换为数字并合并,调用as.table
),但两者均无法正常工作同样的错误出现
Error in sort.list
任何想法?