上一页 1 ··· 165 166 167 168 169 170 171 172 173 ··· 324 下一页
摘要: 1. CREATE TABLE new_table LIKE table; 2. INSERT INTO new_table SELECT * FROM table; 3&4. RENAME TABLE table = old_table, table = new_table; The usual 阅读全文
posted @ 2016-08-07 09:41 emanlee 阅读(413) 评论(0) 推荐(0) 编辑
摘要: ?unlist Given a list structure x, unlist simplifies it to produce a vector which contains all the atomic components which occur in x.unlist(v.row)[1] 阅读全文
posted @ 2016-07-24 15:35 emanlee 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: Generate a random number between 5.0 and 7.5x1 <- runif(1, 5.0, 7.5) # 参数1表示产生一个随机数x2 <- runif(10, 5.0, 7.5)# 参数10表示产生10个随机数Generate a random integer 阅读全文
posted @ 2016-07-17 23:13 emanlee 阅读(627) 评论(0) 推荐(0) 编辑
摘要: ############################################ INSTALLMENT############################################ try http:// if https:// URLs are not supportedsou 阅读全文
posted @ 2016-07-17 21:51 emanlee 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 按时间排序: $ ll -ht ll -t #按照修改时间排序,由新到旧 ll -rt #按照修改时间排序,由旧到新 按大小排序: $ ll -hS ll -Sh #由大到小排序(可读的方式) ll -Sr #由小到大排序(可读的方式) 使用--help查看命令的用法,如 $ ll --help 阅读全文
posted @ 2016-07-13 14:06 emanlee 阅读(13265) 评论(0) 推荐(0) 编辑
摘要: 替换空值: foo <- data.frame("day"= c(1, 3, 5, 7), "od" = c(0.1, "#N/A", 0.4, 0.8)) NAs <- foo == "#N/A" ## by replace method is.na(foo)[NAs] <- TRUE ## or 阅读全文
posted @ 2016-06-03 20:42 emanlee 阅读(5685) 评论(0) 推荐(0) 编辑
摘要: 使用tophat和cufflinks计算RNA-seq数据的表达水平时,当一个基因在一个样本中有多个表达水平时需要合并它们的表达水平。 This code is a solution to collapsing duplicate FPKMs for a gene. CollapseFPKM Col 阅读全文
posted @ 2016-05-26 09:34 emanlee 阅读(1971) 评论(0) 推荐(0) 编辑
摘要: 自增字段,一定要设置为primary key.以指定从1000开始为例。1 创建表的时候就设置: 2 如果在创建表时没有设置,后来想设置,可以通过修改实现: 示例之二: 有时需要对mysql中设为auto_increment发的字段进行重置(恢复/还原),因此总结了一下,大概有三种方式可以做到: 1 阅读全文
posted @ 2016-04-23 15:26 emanlee 阅读(32267) 评论(0) 推荐(0) 编辑
摘要: 四格表(2*2的列联表): Tmin为最小的频数;N为频数之和。 1 当 Tmin≥5,N≥40时, 用普通卡方检验公式;2 当1≦Tmin≦5, N≥40时, 用校正卡方检验公式;3 Tmin<1或N<40时, 用Fisher精确概率法. 对于行×列表资料检验要求每个格子中的理论频数T均大于5或1 阅读全文
posted @ 2016-04-22 16:45 emanlee 阅读(2107) 评论(0) 推荐(0) 编辑
摘要: SELECT aaa,(@rowNum:=@rowNum+1) AS rowNoFROM tb_bbb,(SELECT (@rowNum :=0) ) bORDER BY tb_bbb.liushuihao DESC 阅读全文
posted @ 2016-04-21 09:14 emanlee 阅读(7425) 评论(1) 推荐(0) 编辑
上一页 1 ··· 165 166 167 168 169 170 171 172 173 ··· 324 下一页