阅读背景:

将列分隔成多行,并在左边填入R

来源:互联网 

I've got a very long list of annotated genes. They are annotated at varying levels "A", "B", "C", etc. Each level has a different name and in some cases a different format. I'd like to keep the names of each level intact. In R, the text document gets imported as 1 column, and I'd like to separate A, B, C, and D rows into columns. Rows are in order, meaning "B Level2" is listed after the application A Level1 category and above "C Level3" category. "#" separate level D, from the next A levell category. SO, after each "#" I'd like to separate the A, B, C, and D rows into separate columns. THEN fill in the column to the left with the level category name above. Given this example df:I've got a very long list of annotated genes. T




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: