day5 阿来

作者: 阿来呀 | 来源:发表于2022-04-01 19:16 被阅读0次

    继续学习R语言

    R语言数据学习

    数据 R语言学习.png

    数据输入

    x <- c(1,2,3)
    > y <- matrix(1:12,3,4)
    > y
         [,1] [,2] [,3] [,4]
    [1,]    1    4    7   10
    [2,]    2    5    8   11
    [3,]    3    6    9   12
    > y[1,]
    [1]  1  4  7 10
    > y[,2]
    [1] 4 5 6
    
    read.table("exp.txt",sep = "\t",check.names = T,stringsAsFactors = F)
    

    数据输出

    write.table(deg,file = "deg_all.txt",row.names = 1,check.names = T,stringsAsFactors = F)
    

    总结

    R语言学习的第二天,熟悉了很多操作,继续加油。

    相关文章

      网友评论

        本文标题:day5 阿来

        本文链接:https://www.haomeiwen.com/subject/yzoajrtx.html