为R创建矩阵

时间:2018-05-07 14:01:22

标签: type-conversion

我有一个包含两列的txt文件。

A= gene names
B= tumors with mutation in that gene

我想生成一个矩阵文件,其中所有肿瘤列在一列中,然后连续排列所有基因名称。例如,参见附件

可以用R或awk完成吗?

enter image description here

0 个答案:

没有答案