![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
R
文章平均质量分 52
whjwindow
积累
展开
-
RNote__Reshape2
meltparse_formulacastrecastcolsplit分解到重组:melt——cast原创 2015-06-26 20:01:00 · 344 阅读 · 0 评论 -
RNote__dplyr and plyr
dplyr主要用于处理dataframe数据,并植入C++技术以增加运算速度。原创 2015-06-26 21:36:58 · 803 阅读 · 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 · 7630 阅读 · 3 评论 -
lecture R数据可视化
R数据可视化魏太云是什么?南丁格尔玫瑰图北京地铁百度Echarts里程碑:可视化发展历程 datavisR简介base脸图(aplpack包)faces(t(windfr))树图(treemap包)词云包quantmod包关系矩阵图(corrplot包:魏太云)gridlatticeggplot2js:rechart,rcharts方韩之争 统计词话:sdrv.ms/zk原创 2015-07-05 10:43:41 · 776 阅读 · 0 评论 -
R 摘录笔记
输入输出中文兼容问题字符到执行语句by 函数系统信息等输入输出print()cat()format()formatC()scan() print()函数可以带一个digits=参数指定每个数输出的有效数字位数,可以带一个quote= 参数指定字符串输出时是否带两边的撇号,可以带一个print.gap=参数指定矩阵或数组输出时列之间的间距。原创 2015-07-30 16:06:21 · 455 阅读 · 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 · 1117 阅读 · 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 · 3688 阅读 · 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 · 427 阅读 · 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 · 481 阅读 · 0 评论