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")
网友评论