hairui@hadoop:~$ R
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R是自由软件,不带任何担保。
在某些条件下你可以将其自由散布。
用'license()'或'licence()'来看散布的详细条件。
R是个合作计划,有许多人为之做出了贡献.
用'contributors()'来看合作者的详细情况
用'citation()'会告诉你如何在出版物中正确地引用R或R程序包。
用'demo()'来看一些示范程序,用'help()'来阅读在线帮助文件,或
用'help.start()'通过HTML浏览器来看帮助文件。
用'q()'退出R.
> revenue <- c(201451,214941,220185,197121,179431,187123,164877)
> active_players <- c (187421,197456,214784,201544,175446,187454,170154)
> mean(revenue)
[1] 195018.4
> mean(revenue)
[1] 195018.4
> mean(active_playesrs)
Error in mean(active_playesrs) : 找不到对象'active_playesrs'
> mean(active_players)
[1] 190608.4
> sd(revenue)
[1] 19535.76
> sd(active_players)
[1] 15380.33
> cor(revenue,active_play
R语言入门简单练习
最新推荐文章于 2021-12-28 20:01:50 发布