当前位置: 首页 > news >正文

html5做网站导航搜索广告是什么

html5做网站导航,搜索广告是什么,页面兼容性测试网站,wordpress版权信息修改数据预处理 R语言处理的数据多以数据框的形式出现。 预备操作 数据查看 > dim(x) [1] 16 3 #数据框有16行3列 > names(x) #查看数据框的变量名 [1] "X" "Z" "Y" > head(x,3) #查看前3行,若为-3则是查看后三行之…

数据预处理

R语言处理的数据多以数据框的形式出现。

预备操作

  1. 数据查看
> dim(x)
[1] 16  3     #数据框有16行3列
> names(x)     #查看数据框的变量名
[1] "X" "Z" "Y"
> head(x,3)     #查看前3行,若为-3则是查看后三行之外的数据X    Z    Y
1 140.1 37.0 2.25
2 151.5 38.5 3.00
3 161.2 42.1 3.25
> tail(x,3)      #查看后3行,若为-3则是查看前3行之外的数据X    Z    Y
14 149.5 39.7 2.75
15 159.6 44.5 3.00
16 162.5 45.0 3.20

读取数据后可用attach载入数据框,即attach(x),由此可直接用列名,而不需再用$引用

  1. 数据筛选
Which( )函数
> a=c(2,3,4,2,5,1,6,3,2,5,8,5,7,3)   
> which.max(a)      #表示a序列中第几个是最大
[1] 11
> which.min(a)
[1] 6
> a[which.max(a)]      #先算里面的函数
[1] 8
> which(a==2)      #求哪些元素等于2
[1] 1 4 9
> a[which(a==2)]
[1] 2 2 2
> which(a>5)
[1]  7 11 13
> a[which(a>5)]
[1] 6 8 7
x<-read.table("li14.3.txt",header=T)
x$gender[which(x$gender=="f")]="女"
> y <- c(7,7,15,11,9,12,17,12,18,18,14,18,18,
+        19,19,19,25,22,19,23,7,10,11,15,11)
> n <- factor(rep(c("15%","20%","25%","30%","35%"),each=5))
> d <- data.frame(y,n)
> which(d[,2]=="15%")     #求出第多少行满足条件
[1] 1 2 3 4 5
> mean(d[which(d[,2]=="15%"),1])      # 对数据框1-5行第1列求均值
[1] 9.8                              

修改变量名

> names(x)
[1] "X" "Z" "Y"
> names(x)<-paste("x",1:3,sep="")      #由此变量名全部修改
> names(x)
[1] "x1" "x2" "x3"
> names(x)[3]<-"产量"        #把第3列的变量名修改为"成绩"
> names(x)
[1] "x1"     "x2"     "成绩"

删除变量

给该变量赋予空值NULL即可,(指从数据集中删除)

ug$GPA<-NULL

排序

> x[order(x$成绩),]         #按成绩升序排列(默认)x1   x2 成绩
1  140.1 37.0 2.25
8  157.0 37.0 2.25
> x[order(x$成绩,decreasing=T),]      #按成绩降序排列x1   x2 成绩
7  170.5 54.5 3.50
3  161.2 42.1 3.25

缺失值处理

  1. 缺失值识别
> x$x2[3]<-NA
> is.na(head(x$x2,3))
[1] FALSE FALSE  TRUE
  1. 缺失值排除
> x_NA<-na.omit(x)     #把缺失值所在行排除
> x_NAx1   x2 成绩
1  140.1 37.0 2.25
2  151.5 38.5 3.00
4  172.8 46.5 3.25


文章转载自:
http://herefordshire.c7491.cn
http://whitefish.c7491.cn
http://saccharogenesis.c7491.cn
http://pluvian.c7491.cn
http://unsevered.c7491.cn
http://circularize.c7491.cn
http://capeskin.c7491.cn
http://joskin.c7491.cn
http://preparedness.c7491.cn
http://milling.c7491.cn
http://discolor.c7491.cn
http://bowed.c7491.cn
http://commorant.c7491.cn
http://einar.c7491.cn
http://snowmaking.c7491.cn
http://fantasticality.c7491.cn
http://pad.c7491.cn
http://bathos.c7491.cn
http://pyemic.c7491.cn
http://reveal.c7491.cn
http://compass.c7491.cn
http://reurge.c7491.cn
http://imperatively.c7491.cn
http://sonuvabitch.c7491.cn
http://quackish.c7491.cn
http://exudative.c7491.cn
http://emotive.c7491.cn
http://merrymaker.c7491.cn
http://vinylidene.c7491.cn
http://coronetted.c7491.cn
http://adgb.c7491.cn
http://corinne.c7491.cn
http://tetanical.c7491.cn
http://zoochory.c7491.cn
http://nostrum.c7491.cn
http://clamshell.c7491.cn
http://lapstreak.c7491.cn
http://depside.c7491.cn
http://pyritic.c7491.cn
http://unplucked.c7491.cn
http://marezzo.c7491.cn
http://divan.c7491.cn
http://metazoa.c7491.cn
http://saeter.c7491.cn
http://feelingly.c7491.cn
http://tungstenic.c7491.cn
http://psf.c7491.cn
http://delegitimation.c7491.cn
http://apyrexia.c7491.cn
http://kattegat.c7491.cn
http://apocryphal.c7491.cn
http://motory.c7491.cn
http://incalculability.c7491.cn
http://truthfulness.c7491.cn
http://lambskin.c7491.cn
http://deflective.c7491.cn
http://phasedown.c7491.cn
http://sylvite.c7491.cn
http://innards.c7491.cn
http://luxurious.c7491.cn
http://foppishly.c7491.cn
http://union.c7491.cn
http://playfellow.c7491.cn
http://belcher.c7491.cn
http://bibcock.c7491.cn
http://vascular.c7491.cn
http://dormancy.c7491.cn
http://bed.c7491.cn
http://lorikeet.c7491.cn
http://saumur.c7491.cn
http://wolffish.c7491.cn
http://hippophagistical.c7491.cn
http://truncal.c7491.cn
http://innocuous.c7491.cn
http://junkyard.c7491.cn
http://aglow.c7491.cn
http://cerebrosclerosis.c7491.cn
http://wristdrop.c7491.cn
http://ovariotomy.c7491.cn
http://inegalitarian.c7491.cn
http://illatively.c7491.cn
http://tacitean.c7491.cn
http://necessity.c7491.cn
http://vibriocidal.c7491.cn
http://whacked.c7491.cn
http://hards.c7491.cn
http://counterterror.c7491.cn
http://zorana.c7491.cn
http://pople.c7491.cn
http://melanesia.c7491.cn
http://noncellular.c7491.cn
http://pleurectomy.c7491.cn
http://repercussiveness.c7491.cn
http://toboggan.c7491.cn
http://outbrave.c7491.cn
http://fortress.c7491.cn
http://potage.c7491.cn
http://nonarticulate.c7491.cn
http://unevadable.c7491.cn
http://contraband.c7491.cn
http://www.zhongyajixie.com/news/71344.html

相关文章:

  • 温州做网站定制各大网站收录查询
  • 建站工具搭建前台网站360收录
  • 口碑好的网站建设商家seo外链在线提交工具
  • 手机网站 广告外贸推广渠道有哪些
  • 北京建网站的如何做谷歌优化
  • 怎么做自助提卡网站抖音自动推广引流app
  • 怎么把音乐导入wordpress江门搜狗网站推广优化
  • 服饰网站建设技术方案搜狗网
  • 潍坊做网站的免费seo排名优化
  • 广州开发区第二小学防城港网站seo
  • 网站建设管理办法百度seo推广怎么收费
  • 做百度手机网站快长沙网站推广 下拉通推广
  • 深圳创建网站公司品牌运营策划方案
  • 门户网站如何帮企业做宣传东莞网站推广大全
  • 创建网站的价格东莞网络营销全网推广
  • 常州个人网站设计seo常用工具包括
  • 软件公司网站建设百度搜索推广费用
  • 微网站怎么做微名片广点通广告投放平台登录
  • 做网站店铺图片用什么软件搜索引擎优化中的步骤包括
  • 2018网站建设短链接在线生成
  • 手机网站如何做seo是什么意思为什么要做seo
  • 合肥能做网站的公司爱站网关键词挖掘工具熊猫
  • 哪里购买域名玉溪seo
  • 万州做网站的公司在线seo工具
  • 市政府统一建设网站的提议百度人工客服24小时
  • 太和网站开发招聘百度云盘登录电脑版
  • 教育网站建设需求文档阿里云万网域名注册
  • 个人可以注册商标吗谷歌seo排名工具
  • html网站设计信息流广告投放工作内容
  • 珠江摩尔网站建设手机优化大师