上一页 1 ··· 166 167 168 169 170 171 172 173 174 ··· 307 下一页
摘要: 《python基础教程(第二版)》学习笔记 列表/元组(第2章) 序列中的下标从0开始x='ABC' ==> x[0]='A', x[1]='B', x[2]='C'负数索引从右边开始。最后一个元素下标是-1;x[-1]='C''ABC'[0] ==> 'A'raw_input("x:")[3] 输 阅读全文
posted @ 2014-10-16 08:40 emanlee 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 《python基础教程(第二版)》学习笔记 基础部分(第1章)python常用的IDE:Windows: IDLE(gui), Eclipse+PyDev; Python(command line);Linux/Unix: python1/2=0 # 整除结果为0from __future__ im... 阅读全文
posted @ 2014-10-15 17:13 emanlee 阅读(921) 评论(0) 推荐(0) 编辑
摘要: R免费使用;统计工具;# 注释,行注释块注释:anything="这是注释的内容"常用R语言编辑器:Rsutdio,Tinn-R,Eclipse+StatET;中文会有乱码帮助:?,help; ?boxplot, help(boxplot),help("[[")运行R文件:source('abc.R 阅读全文
posted @ 2014-10-12 10:35 emanlee 阅读(8896) 评论(0) 推荐(0) 编辑
摘要: args_test.R 代码如下:Args <- commandArgs()cat("Args[1]=",Args[1],"\n")cat("Args[2]=",Args[1],"\n")cat("Args[3]=",Args[3],"\n")cat("Args[4]=",Args[4],"\n") 阅读全文
posted @ 2014-10-11 07:31 emanlee 阅读(27959) 评论(3) 推荐(0) 编辑
摘要: df<-NULL new_row<-data.frame(colA="xxx",colB=123) df<-rbind(df,new_row) 阅读全文
posted @ 2014-10-11 07:20 emanlee 阅读(930) 评论(0) 推荐(0) 编辑
摘要: #==============================# ggplot2: subscript in x-axis labels(ticks) rm(list=ls(all=TRUE))library(ggplot2)data <- data.frame(names=tolow... 阅读全文
posted @ 2014-10-10 08:52 emanlee 阅读(2699) 评论(0) 推荐(0) 编辑
摘要: 折线图-ggplot2 http://blog.163.com/yugao1986@126/blog/static/6922850820131161531421/http://blog.sina.com.cn/s/blog_7cffd1400101f50v.html《R Graphics Cookb... 阅读全文
posted @ 2014-10-02 08:30 emanlee 阅读(851) 评论(0) 推荐(0) 编辑
摘要: file1-file2 => file3file1=/data/aaafile2=/data/bbbfile3=/data/cccsort -m $file3 阅读全文
posted @ 2014-09-28 17:24 emanlee 阅读(897) 评论(0) 推荐(0) 编辑
摘要: # ps aux | moreUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDaimin 13362 99.1 13.6 12942520 12641232 ? R 13:12 445:48 /usr/local/lib64/R/bin... 阅读全文
posted @ 2014-09-20 20:47 emanlee 阅读(7015) 评论(0) 推荐(0) 编辑
摘要: 1、$position = index(string,substring,skipchars); 该函数返回子串substring在字符串string中的位置,如果不存在,则返回-1;参数skipchars是可选参数,表示查找之前跳过的字符数,即:从该位置处开始查找; 2、rindex(string 阅读全文
posted @ 2014-09-09 13:11 emanlee 阅读(1400) 评论(0) 推荐(0) 编辑
上一页 1 ··· 166 167 168 169 170 171 172 173 174 ··· 307 下一页