我有这样的数据:
GO:2000974 7,8 negative_regulation_of_pro-B_cell_differentiation Notch1 ISS
GO:2000974 7,8 negative_regulation_of_pro-B_cell_differentiation Q9W737 IEA
GO:0001768 4 establishment_of_T_cell_polarity Ccl19 IEA
GO:0001768 4 establishment_of_T_cell_polarity Ccl19 ISS
GO:0001768 4 establishment_of_T_cell_polarity Ccl21 IEA我要做的是将第四列的文本大写起来。例如,现在我们有了Notch1,然后它将被转换为NOTCH1。在R里怎么做呢?我被困在这:
dat<-read.table("http://dpaste.com/1353034/plain/")发布于 2013-08-22 08:15:58
只需使用toupper函数:
R> toupper(c("a", "ab"))
[1] "A" "AB"对于您的数据框架,您将拥有:
dat[,4] = toupper(dat[,4])https://stackoverflow.com/questions/18374986
复制相似问题