上一页 1 ··· 177 178 179 180 181 182 183 184 185 ··· 342 下一页
摘要: 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 阅读全文
posted @ 2017-12-19 01:40 emanlee 阅读(193) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-12-16 07:13 emanlee 阅读(213) 评论(0) 推荐(0)
摘要: 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< 阅读全文
posted @ 2017-12-12 07:20 emanlee 阅读(1322) 评论(0) 推荐(0)
摘要: cat > temp004AA1abcAA2AA3abcAA4abcAA5AA6awk 'BEGIN {pre=0; str="";} { if(NR==1){ if($0 ~ /AA/) {pre=1;} else {pre=0;} str=$0; } else { if($0 ~ /AA/) { 阅读全文
posted @ 2017-12-06 02:13 emanlee 阅读(228) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-12-06 01:32 emanlee 阅读(202) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-12-05 23:40 emanlee 阅读(517) 评论(0) 推荐(0)
摘要: REF: http://www.theunixschool.com/2012/05/awk-join-or-merge-lines-on-finding.html https://stackoverflow.com/questions/15758814/turning-multiple-lines- 阅读全文
posted @ 2017-12-05 05:20 emanlee 阅读(1706) 评论(0) 推荐(0)
摘要: How to use grep to match multiple strings in the same line? grep 'string1\|string2' filename grep -E "string1|string2" filename How can I grep for a s 阅读全文
posted @ 2017-12-02 07:18 emanlee 阅读(955) 评论(0) 推荐(0)
摘要: 打开虚拟机进入Ubuntu系统,首先要安装VirtualBox增强功能包(VBoxGuestAdditions) 。 点击运行后,系统会自动安装,安装完成后要求重启系统。 在本机系统设置一个共享文件夹,用于与Ubuntu交互的区域空间。 右击状态栏上共享文件夹图标或菜单栏“设备-共享文件夹”,打开共 阅读全文
posted @ 2017-11-20 23:48 emanlee 阅读(358) 评论(0) 推荐(0)
摘要: 安装方法一(下载安装;繁琐): 1 下载R源代码原码下载地址https://cloud.r-project.org/https://cloud.r-project.org/src/base/R-3/R-3.4.2.tar.gz2 安装编译环境yum -y install gccyum install 阅读全文
posted @ 2017-11-14 23:52 emanlee 阅读(2574) 评论(0) 推荐(0)
上一页 1 ··· 177 178 179 180 181 182 183 184 185 ··· 342 下一页