码迷,mamicode.com
首页 > 编程语言 > 详细

R语言-均值,标准差,相关度

时间:2016-10-03 14:58:45      阅读:819      评论:0      收藏:0      [点我收藏+]

标签:

 1 > plot(x)
 2 > age<-c(1,3,5,2,11,9,3,9,12,3)
 3 > weight<-c(4.4,5.3,7.2,5.2,8.5,7.3,6.0,10.4,10.2,6.1)
 4 > mean(weight)
 5 [1] 7.06
 6 > sd(weight)
 7 [1] 2.077498
 8 > cor(age,weight)
 9 [1] 0.9075655
10 > plot(age,weight)

技术分享

R语言-均值,标准差,相关度

标签:

原文地址:http://www.cnblogs.com/belfuture/p/5929015.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!