
R语言
文章平均质量分 79
倚东
Coding Lover
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
R语言基础命令一网打尽
a<-c(35,6,3,4,6,3,67,8,56)a[1] 35 6 3 4 6 3 67 8 56class(a)[1] “numeric”which(a>10)[1] 1 7 9a[1][1] 35is.logical(a)[1] FALSEa<-c(35,6,3,4,6,3,67,8,56)a[1][1] 35is.logical...原创 2020-02-24 10:24:28 · 2015 阅读 · 1 评论 -
R语言主成分分析
读入数据,观察结构> data(attitude)> head(attitude) rating complaints privileges learning raises critical advance1 43 51 30 39 61 92 452 63 64 ...原创 2019-12-23 20:33:26 · 3736 阅读 · 0 评论 -
R聚类分析@;
原始数据:13个品牌的鼠标参数,如下表。brand Touch Chips Driver Compatibility Game1 Brand1 7.5 17.5 7.0 8.0 8.02 Brand2 7.5 19.5 7.0 7.0 9.03 Brand3 8.5 18.0 8.5 ...原创 2019-12-20 21:26:26 · 575 阅读 · 0 评论 -
关联规则分析
概念:1、规则的支持度SupportS(A=>B)=P(A∩B)2、规则的置信度ConfidenceConf(A=>B)=(S(A=>B))/(S(A))=P(B|A)3、规则的提升度LiftLift(A=>B)=Conf(A=>B)/S(B) =(P(B|A))/P(B)4、规则的部署能力D=S(A)-S(A=>B)...原创 2019-12-18 17:26:46 · 1605 阅读 · 0 评论 -
R语言决策树分析
A:分类树判别一、数据读入及转化以R中Titanic数据为例。> data(Titanic) #数据读入> str(Titanic) 'table' num [1:4, 1:2, 1:2, 1:2] 0 0 35 0 0 0 17 0 118 154 ... - attr(*, "dimnames")=List of 4 ..$ Class : chr [1:4] ...原创 2019-12-16 18:51:41 · 5019 阅读 · 1 评论 -
R语言支持向量机实例
数值预测:1、读入数据> library(ggplot2)> library(dplyr)> data(diamonds)> diamonds.data<-select(diamonds,carat:clarity,price)> summary(diamonds.data) carat cut c...原创 2019-12-08 10:23:13 · 3711 阅读 · 0 评论 -
R语言k最近邻法(KNN)
读入数据,格式转化> ws<-read.csv(choose.files())> head(ws) Channel Region Fresh Milk Grocery Frozen Detergents_Paper Delicassen1 2 3 12669 9656 7561 214 2674 13...原创 2019-12-06 19:45:51 · 2089 阅读 · 0 评论 -
R语言回归分析
一、一元回归分析读入数据,观察结构 a<-read.csv(choose.files()) > head(a) name time opening_price closing_price low_price high_price volume1 JD 3-Jan-17 25.95 25.82 25.64 ...原创 2019-12-05 16:27:15 · 2561 阅读 · 0 评论