摘要:
# Coercing LHS to a list expr_3$ID<-rownames(expr_3) # OK ids<-rownames(expr_3)expr_4<-cbind(expr_3, ID=ids) 阅读全文
摘要:
#include <stdio.h>#include <stdlib.h>#include <string.h>char * strtolower(char * old){ char xx[1000]; int ii, length=0; length=strlen(old); for(ii=0; 阅读全文
摘要:
R read.tabe line 5 did not have 2 elements Reason: there are special characters such as # in file old_value new_valueEZF2 ZNF444EZF2 ZNF444ZSCAN17 ZNF 阅读全文
摘要:
aa<- list(a=1, b="two", c=list(3, "four"))bb <- list(a=1, c=list(3, "four"), b="ni")aa[!(aa %in% bb)]REF:https://stackoverflow.com/questions/1468856/h 阅读全文
摘要:
Say I have a data.frame:df <- data.frame(A=c(10,20,30),B=c(11,22,33), C=c(111,222,333)) A B C1 10 11 1112 20 22 2223 30 33 333If I select two (or more 阅读全文
摘要:
d<- data.frame(x = c(0, 1)) d<- data.frame(d, y = c(0,1)) names(d)[2]<- "a.-5" d x a.-50 01 1 d1<- data.frame(d, y = c(0,1)) d1 x a..5 y0 0 01 1 1 d2< 阅读全文
摘要:
cat > temp004AA1abcAA2AA3abcAA4abcAA5AA6awk 'BEGIN {pre=0; str="";} { if(NR==1){ if($0 ~ /AA/) {pre=1;} else {pre=0;} str=$0; } else { if($0 ~ /AA/) { 阅读全文
摘要:
cat > temp0015101269125 awk 'p{print $0-p}{p=$0}' temp00152-633-7 REF: https://www.unix.com/shell-programming-and-scripting/130727-how-subtract-adjace 阅读全文
摘要:
Liang always brings me interesting quiz questions. Here is one: If i have a table like below: chr1 113438 114495 1 chr1 114142 114143 chr1 113438 1144 阅读全文
摘要:
REF: http://www.theunixschool.com/2012/05/awk-join-or-merge-lines-on-finding.html https://stackoverflow.com/questions/15758814/turning-multiple-lines- 阅读全文