您现在的位置是:首页>酷博客
R语言的基础绘图技术
高水平绘图函数 x <- 1:100 #生成1-100的向量 y <- 100 + x*5 #100是截距,5是斜率 #windows是生成一个窗口更,plot是绘图 windows(300,200);plot(y) #散点图 windows(300,200);plot(y,type="l") #直线 # 生成100个正态分布随机数并绘图 全文

R语言常用的数据分析函数
#显示加载到内存中的变量和函数名称 ls() #显示加载到内存中的变量和函数的详细信息 ls.str() # 计算返回向量中最大、最小的元素的索引值 > x <- 1:100 > print(which.max(x)) [1] 100 > print(which.min(x)) [1] 1 全文

R语言数据操作
向量 #访问向量中元素 x <- 1:10;print(x) ---> [1] 1 2 3 4 5 6 7 8 9 10 print(x[5]) ---> [1] 5 print(x[-5]) #除了第5个元素之外的所有元素 ---> [1] 1 2 3 4 6 7 8 9 10 print(x[c(1,5,8)]) 全文

Ubuntu14.04环境Hadoop2.6.0下安装Hive1.2.1
安装Hadoop(略) 安装mysql(略) 启动mysql mysql -uroot -p //想myuser使用mypassword从任何主机连接到mysql服务器 grant all privileges on *.* to myuser@'%' identified by 'mypassword' with grant option; //创建Hive数据库 全文

R语言常用数据结构
x <- c(1,2,3,4,5);print(x) x <- 1:10;print(x) x <- seq(from=1,to=10);print(x) #1~10,步长为2 x <- seq(from=1,to=10,by=2);print(x) 全文

R语言基本语法
RStudio快捷键 Ctrl + L 清除控制台输出 Ctrl + Enter 运行光标所在行的R代码 或 当前选中行的R代码 Ctrl + Shift + S 运行当前脚本文件 Ctrl + D 删除整行 变量赋值 全文

Spark-shell例子
hadoop2@ubuntu:/liguodong/software/spark$ bin/spark-shell --master spark://ubuntu:7077 --executor-memory 2g 全文


Ubuntu常用软件安装及解决情况
解决iNodeClient校园网安装双击不能运行问题拷贝 libtiff.so.4.3.2,libtiff.so.4,libtiffjpeg.so.62 三个库文件到/usr/lib文件夹下。然后双击运行软件。全文
