随笔分类 - [31] R
摘要:title 0), hjust=-0.5)+ geom_text(data=subset(tmp, x <=0), hjust=1.5)print(p)================================dat <- read.table(text="cars trucks...
阅读全文
摘要:Warning message:In ks.test(x, y) : p-value will be approximate in the presence of tiesThe warning messages are due to the implementation of the KS tes...
阅读全文
摘要:shell ls -lrt ### list fils by date (sort by date) echo 1 > /proc/sys/vm/drop_caches 清理内存 free -m du -h --max-depth=1 folder awk '$0 ~ ">hsa" { print
阅读全文
摘要:Red hat Linux(Centos 5/6)安装R语言1 wget http://cran.rstudio.com/src/base/R-3/R-3.0.2.tar.gz2 tar xzvf R-3.0.2.tar.gz3 cd R-3.0.24 ./configure 5 make6 mak...
阅读全文
摘要:> d typeof(d) [1] "list" > n = c(2, 3, 5) > s = c("aa", "bb", "cc") > b = c(TRUE, FALSE, TRUE) > df = data.frame(n, s, b) > typeof(df)...
阅读全文
摘要:Red Hat Linux Enterprise Server 5.8 安装R语言 R-2.13.0下载R-2.13.0源代码http://cran.stat.ucla.edu/src/base/R-2/1、解压文件:tar –zvxf R-2.13.0.tar.tar2、进入R源文件目录:cd R...
阅读全文
摘要:安装R语言的包的方法: 1. 自动安装(在线安装) 在R的控制台,输入 install.packages("gridExtra") # 安装 gridExtra install.packages("stepNorm", contriburl="http://www.your.url", depend
阅读全文
摘要:bioconductor 包的安装安装R,并启动R。 > source("http://bioconductor.org/biocLite.R") > biocLite() Using R version 2.10.0 (R-devel), biocinstall version ...
阅读全文
摘要:R语言数据储存与读取 1 首先用getwd() 获得当前目录,用setwd("C:/data")设定当前目录 2 数据保存 创建数据框d >d <- data.frame(obs = c(1, 2, 3), treat = c("A", "B", "A"), weight = c(2.3, NA,
阅读全文