![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
R语言
文章平均质量分 90
R助手
赠人玫瑰,手有余香。
展开
-
R_quant
quant ind1 <- which(tmp$market_per < x ) ind2 <- sort(c(ind1,ind1+1)) ans <- tmp[ind2,] a <- ans$other_clo[seq(2,nrow(ans),2)]/ans$other_clo[seq(1,nrow(ans),2)]-1 a<- f.rNA...原创 2020-03-14 15:43:50 · 204 阅读 · 0 评论 -
ubuntu emacs ess R
1.首先yum install emacs2.准备ess:github上下载:可以在GitHub[https://github.com/emacs-ess/ESS]上下载ESS的当前版本和先前版本值得信赖得到ESS-master.zip解压缩 unzip ESS-master.zipcd ESS-master安装 make成功之后:对centos7一些配置sudo fi...原创 2019-10-12 16:22:35 · 254 阅读 · 0 评论 -
R语言实现直方图
rm(list=ls())pdf("myFirst2.pdf")options(stringsAsFactors = F)library(ggplot2)library(gcookbook)library("WindR")w.start(10,F)###均价和成交量tmp <- w.wsd("******.SH","vwap,volume","2017-01-01","2017-12-原创 2018-02-27 15:33:11 · 1927 阅读 · 0 评论 -
R语言连接mysql
rm(list=ls())options(stringsAsFactors = F)library(DBI)library(RMySQL)conn <- dbConnect(MySQL(), dbname = "***", username="wli", password="****",host="120.79.154.***",port=3306)summary(conn)dbGetInf...原创 2018-04-09 18:12:35 · 364 阅读 · 0 评论 -
在emacs上显示调试命令行
.emacs内容配置:;; .emacs(custom-set-variables ;; uncomment to always end a file with a newline ;'(require-final-newline t) ;; uncomment to disable loading of "default.el" at startup ;'(inhibit-default-ini...原创 2018-04-12 16:58:04 · 292 阅读 · 0 评论 -
R常用自带函数总结
NOTE 希望杂乱无章的代码能帮助你,R语言在国内并不是很热的语言,同时也希望能坚持走下去。如果您在研究Rcpp,可以加个好友一起探究。即R和C++的无缝结合。R语言中取整运算主要包括以下五种:floor() 向下取整 signif() 保留给定位数的精度 ceiling() 向上取整 unique 返回对象的不同取值,如“unique(...原创 2018-05-24 17:10:07 · 2783 阅读 · 1 评论 -
R_to_python接口安装实现
一.Windows下安装anaconda1.为什么安装anaconda,因为pip怎么也安装不了,所以安装anaconda2.添加环境变量:用户变量:R_HOMED:\Program Files\R\R-3.4.43.打开Anaconda Prompt,直接安装。安装过程中conda会下载对应版本的R以及R包。 conda install rpy2以上就安装好了。...原创 2018-09-17 18:29:40 · 418 阅读 · 0 评论 -
R语言 调用钉钉机器人
R语言 调用钉钉机器人rm(list=ls())library("httr") testURL <- list()phone <- list() ddFun <- function(group=NULL,content=NULL,at=NULL){ headers...原创 2018-09-27 19:07:23 · 796 阅读 · 0 评论