![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
r语言
poppyque
这个作者很懒,什么都没留下…
展开
-
Rstudio | 学习shiny的心得
学习shiny之搭建环境 1、学习R语言之ShinyApp(1) https://blog.csdn.net/guyang1995/article/details/81323171 2、中文教程 用R构建shiny应用程序 http://yanping.me/shiny-tutorial/#deployment-local ...原创 2019-11-26 09:13:09 · 2085 阅读 · 0 评论 -
R编写一个数论中的简单定理
编写一个R程序(函数)。输入一个整数n,如果n不大于0,则终止运算,并输出一句话:“请输入一个正整数”。否则,如果n是偶数,则将n除2,并赋给n;否则,将3n+1赋给n。不断循环,直到n=1,才停止计算,并输出一句话:“运算成功”。 f2<-function(n){ if(n<=0) list("要求输入一个整数n") else{repeat{ if(n==1) brea原创 2017-03-31 17:16:59 · 4400 阅读 · 3 评论 -
R语言数组、矩阵、数据框与列表、控制流练习
x<-t(c(1,2,3));y<-t(c(4,5,6)); z<-2*x+y+t(rep(1,3)) cp<-crossprod(x,y)#对x,y作内积 tcp<-tcrossprod(x,y)#对x,y作外积A<-array(1:20,dim=c(4,5))#按列输入 B<-matrix(1:20,nrow=4,ncol=5,byrow=TRUE)#按行输入 C<-A+B D<-A%*%t(B原创 2017-03-31 17:32:57 · 1139 阅读 · 1 评论 -
Rstudio的配置
** 1、调整字体(文本缩放) ** Tools——Global Options——Appearance——Zoom、Editor front size 2、修改包的镜像下载 默认的下载地址都在国外,所以一般来说下载速度十分慢。但其实在国内都有相关的镜像,可以用来下载相关包 Rstudio直接在Tools–>Global Options–>Packages–>CRAN mirr...原创 2019-01-31 14:42:42 · 3447 阅读 · 0 评论