正在加载图片...
R语言基本操作 文本输出 重定向文本输出ink函数(图形输出用pd0,p),svg等函数 sink( test. txt") >x<-c(NA,1:3,-1:1/0);X X 1 na 1 23-Inf NaN Int diro 1 gene fpkm all csv hair follicle cycle genes. csv"hair_cycle genes. tsv [4 hair cycle go. txt tem d1.txt test. txt read table( test. txt, header FALSE Ⅵ1V2V3V4V5V6Ⅵ7V8 1[1]NA 1 2 3-Inf NaN Inf file remove " test. txt") [1] TRUER语言基本操作 文本输出 重定向文本输出sink()函数(图形输出用pdf(), png(), svg()等函数) > sink("test.txt") > x <- c(NA, 1:3, -1:1/0); x > sink() > x [1] NA 1 2 3 -Inf NaN Inf > dir() [1] "gene_fpkm_all.csv" "hair follicle cycle genes.csv" "hair_cycle_genes.tsv" [4] "hair_cycle_go.txt" "stem_d1.txt" "test.txt" > read.table("test.txt", header = FALSE) V1 V2 V3 V4 V5 V6 V7 V8 1 [1] NA 1 2 3 -Inf NaN Inf > file.remove("test.txt") [1] TRUE
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有