读取dataframe的指定行或列
http://shichangshun.cn/2015/11/09/%E6%8A%80%E6%9C%AF/2015-11-09-Read-rows-col/
1 | if(!file.exists("read")){ |
命令的重复
1 | var.genes=Reduce(intersect, var.genes1) |
快速计算cor
library(HiClimR)
fastCor
数据框替换值
method1: 使用封装函数
1 | currentid |
method3: 使用%>%
trimws
替换开头或结尾的空格、换行符、制表符、回车。
1 | trimws(gene,which=c("both"), whitespace="[ \t\r\n]") |
scale
1 | library(scales) |
ggplot 多个画板一个图
示例
1 | ###################################### same mouse |