美文网首页
Day1-R 04 read_edit_writ.R

Day1-R 04 read_edit_writ.R

作者: 养猪场小老板 | 来源:发表于2020-01-17 00:37 被阅读0次

1.读取ex1.txt

> read.table("ex1.txt",header = T)#文本文件用""
1.png

2.读取ex2_B cell receptor signaling pathway.csv

> read.csv("ex2_B cell receptor signaling pathway.csv",row.names = 1)
2.png

3.读取GSE32575_series_matrix.txt,赋值给gse。

> gse <- read.table("GSE32575_series_matrix.txt",
                    comment.char = "!",
                    header = T,
                    row.names = 1)
> View(gse)
3.png

4.描述gse的属性

dim(gse)
colnames(gse)
rownames(gse)
class(gse)

5.将gse导出为新的txt和csv文件。

> write.csv(gse,"diwu")

6.将gse保存为Rdata并加载。

> save(gse,file = "timu6.Rdata")
> rm(list = ls())
> load("timu6.Rdata")

相关文章

  • Day1-R 04 read_edit_writ.R

    1.读取ex1.txt 2.读取ex2_B cell receptor signaling pathway.csv...

  • Day1-R 02-data_structure

    重点:数据框 1.数据框来源 (1)在R中新建(2)由已有数据转换或处理得到(3)从文件中读取(4)内置数据集 2...

  • Day1-R 01-get_start

    2.1.向量生成 (1)用 c()逐一放到一起,允许重复值 (2)连续的数字用冒号“:” (3)有重复的用rep(...

  • 2018-04-20

    2018-04-20 2018-04-20 2018-04-20 2018-04-20 2018-04-20201...

  • 201904|每日一图

    2019-04-28 2019-04-27 2019-04-26 2019-04-25 2019-04-24 20...

  • 《淘金》汇总

    淘金04/07淘金04/08淘金04/09淘金04/10淘金04/17——有一个海岛爱情故事想讲给你听淘金04/2...

  • 2018-04-04

    2018-04-04 180 戴师傅 简书作者 2018.04.04 22:16 打开App 2018-04-04...

  • Summary Session

    2019/04/03 and 2019/04/04 The weather was very warm. 08:2...

  • 2019-04-04

    2019-04-04 星月阁主 字数 1334 · 阅读 0 2019-04-04 10:00 学习之路 星月阁主...

  • 2020-04-05

    2020-04-04 菜菜_d868 字数 222 · 阅读 1 2020-04-04 23:06 姓名:邢彩颜 ...

网友评论

      本文标题:Day1-R 04 read_edit_writ.R

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