![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
R Project
文章平均质量分 58
玄武灌汤包
临床医学-心内科博士研究生
展开
-
载入了名字空间‘htmltools’ 0.5.6,但需要的是>= 0.5.7解决方案
1.卸载之前的安装包。2.关闭R,重新打开。原创 2023-12-10 12:39:24 · 4303 阅读 · 0 评论 -
R reason ‘拒绝访问‘的解决方案
【代码】R拒绝访问的解决方案。原创 2023-09-14 15:28:22 · 1386 阅读 · 0 评论 -
R4.3.0版本Rtools43安装教程(2023-08-31)
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding原创 2020-09-11 23:33:40 · 10186 阅读 · 5 评论 -
R语言 | 字符串搜索(关键字搜索)(packages:stringr)
1.任务描述:在文本中搜索关键字2.解决方案:> library(stringr)> str_detect(c("高血压糖尿病", "糖", "尿病" ), "糖尿病")[1] TRUE FALSE FALSE> str_detect(c("高血压糖尿病", "糖", "尿病" ), "糖尿病 | 病&qu翻译 2018-12-02 16:15:27 · 12238 阅读 · 2 评论 -
R语言 | 自定义函数对数据集(data.frame)的列进行条件判断计算
1.使用iris数据集> iris_10 <- head(iris, n = 10)## 自定义函数:如果x >= 5.0, z = y *10> get_With_function <- function(x, y, z){+ if(x >= 5.0){+ z <- y * 10+ }+ c(zlie...原创 2018-12-02 16:05:12 · 9049 阅读 · 0 评论 -
R语言 |在官网查找程序包(packages)的官方说明书
1.待解决的问题如何查找ggplot2等package的官方说明书2.解决方案2.1方法(1)下图所示,在R的官网,找到任意下载R的页面,进入“packages”,即可2.2方法(2)百度:cran + ggplot2...原创 2018-11-21 10:26:00 · 15334 阅读 · 2 评论 -
R语言-《R in Action,2rd》-Robert I.Kabacoff-Chapter 2.Creating a dataset
R in ActionData analysis and graphics with R - SECOND EDITIONROBERT I. KABACOFFISBN: 9781617291388Chapter 2. Creating a dataset1.1 相关性翻译 2018-11-15 00:09:38 · 473 阅读 · 0 评论 -
R语言-《Learning R》-Chapter15 : Distribution and Modeling-随机数字+线性回归
## 随机数:从1到7的7个随机数&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; sample(7)[1] 5 2 7 4 3 6 1## 随机数:从1到7的5个随机数&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; sample(7, 5)[1] 7 2 6 3 4&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; sample(7, 10翻译 2018-11-12 21:22:39 · 1001 阅读 · 0 评论 -
R语言-错误分析-Error in .Call.graphics(C_palette2, .Call(C_palette2, NULL)) : invalid graphics state
plot时,出现的错误01> ggplot(religions_long, + aes(State, value, fill = variable)) ++ geom_bar(stat = "identity") ++ coord_flip()> Error in .Call.graphics(C_palette2, .Call(C_palett...原创 2018-11-12 11:00:53 · 17405 阅读 · 0 评论 -
R语言_数据筛选高血压患者
#工作目标:读取csv文件,并筛选出平均收缩压120~139或舒张压80~89的患者(根据2010年中国高血压指南)原创 2018-11-11 00:29:07 · 1321 阅读 · 0 评论 -
R语言bootstrap分析(boot)
//bootstrap分析数据,package = &amp;amp;amp;amp;amp;amp;quot;boot&amp;amp;amp;amp;amp;amp;quot;//function :The second will be a vector of indices, frequencies or weights which define the bootstrap sample.&amp;amp;amp;amp;amp;amp;amp;翻译 2018-11-11 13:07:55 · 25419 阅读 · 2 评论 -
R语言-《R in Action,2rd》-Robert I.Kabacoff-Chapter 1.Introduction to R
R in ActionData analysis and graphics with R - SECOND EDITIONROBERT I. KABACOFFISBN: 9781617291388## An &amp;amp;amp;amp;quot;object&amp;amp;amp;amp;quot; is basically anything that can be assigned a value. For R, that is jus翻译 2018-11-13 13:28:26 · 442 阅读 · 0 评论 -
R语言(pROC)绘图
R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night"Copyright (C) 2019 The R Foundation for Statistical ComputingPlatform: x86_64-w64-mingw32/x64 (64-bit)翻译 2018-11-09 12:20:09 · 15871 阅读 · 4 评论