
R
文章平均质量分 56
whjwindow
积累
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
RNote__Reshape2
melt parse_formula cast recast colsplit 分解到重组:melt——cast原创 2015-06-26 20:01:00 · 388 阅读 · 0 评论 -
RNote__dplyr and plyr
dplyr主要用于处理dataframe数据,并植入C++技术以增加运算速度。原创 2015-06-26 21:36:58 · 873 阅读 · 0 评论 -
面板数据分析plm
采用plm包,固定、随机效应模型,Hausman过度识别检验(原假设是两个模型一致); 加入截面变系数,即是按个体分别进行回归分析。 > #载入面板数据分析包 library("plm", lib.loc="D:/R/R/R-3.1.2/library") p_csy = plm.data(csy_zero, indexes = c("industry", "year")) #fix_e原创 2015-06-27 15:05:51 · 7800 阅读 · 3 评论 -
lecture R数据可视化
R数据可视化魏太云是什么? 南丁格尔玫瑰图 北京地铁 百度Echarts 里程碑:可视化发展历程 datavis R简介 base脸图(aplpack包)faces(t(windfr)) 树图(treemap包) 词云包 quantmod包 关系矩阵图(corrplot包:魏太云) grid lattice ggplot2js:rechart,rcharts方韩之争 统计词话:sdrv.ms/zk原创 2015-07-05 10:43:41 · 825 阅读 · 0 评论 -
R 摘录笔记
输入输出 中文兼容问题 字符到执行语句 by 函数 系统信息等 输入输出 print() cat() format() formatC() scan() print()函数可以带一个digits=参数指定每个数输出的有效数字位数,可以带一个quote= 参数指定字符串输出时是否带两边的撇号,可以带一个print.gap=参数指定矩阵或数组输出时列之间的间距。原创 2015-07-30 16:06:21 · 537 阅读 · 0 评论 -
R批量导入数据
批量导入数据的两种方法 pollutantmean = function(director, pollutant, id = 1:332) { setwd(“E:/clean/R_course”) filenames = list.files(“specdata”)[id] #temp = c() 方法一,采用lapply,可以保留变量名;原创 2016-09-26 17:40:55 · 1211 阅读 · 0 评论 -
R软件及其包的更新
方法一 move the packages from the old R installation into the new version; on Mac OSX, this means moving all folders from here: /Library/Frameworks/R.framework/Versions/2.15/Resources/library to here:原创 2016-09-26 17:42:52 · 3779 阅读 · 0 评论 -
R 逻辑运算
&与&&的区别 You can use the & operator to evaluate AND across a vector. The && version of AND only evaluates the first member of a vector. Let’s test both for practice. Type the expression TRUE &原创 2016-09-27 15:55:40 · 496 阅读 · 0 评论 -
R无名函数调用
evaluate()| Let’s use the evaluate function to explore how anonymous functions work. For the first argument of the | evaluate function we’re going to write a tiny function that fits on one line. In th原创 2016-09-27 16:33:23 · 542 阅读 · 0 评论