plot

随机模拟2

随机数 随机数检验 安装依赖库 sudo apt-get update && sudo apt-get install -y libgsl-dev libdieharder-dev 安装并加载 RDieHarder 包 if( ! "RDieHarder" %in% list.files(.libPaths()) ) install.packages('RDieHarder') ## Installing package into '/home/travis/R/Library' ## (as 'lib' is unspecified) library(RDieHarder) # 加载 RDieHarder [@R-RDieHarder] 由 Dirk Eddelbuettel 开发,将 Robert G. Brown 的工作介绍给 R 用户 if( ! "purrr" %in% list.files(.libPaths()) ) install.packages('purrr') library(purrr) dieharderGenerators() %>% head ## names id ## 1 borosh13 0 ## 2 cmrg 1 ## 3 coveyou 2 ## 4 fishman18 3 ## 5 fishman20 4 ## 6 fishman2x 5 dieharderTests() %>% head ## names id ## 1 diehard_birthdays 0 ## 2 diehard_operm5 1 ## 3 diehard_rank_32x32 2 ## 4 diehard_rank_6x8 3 ## 5 diehard_bitstream 4 ## 6 diehard_opso 5 set.

网络可视化与 R 语言

引言 网络可视化与 R 语言 网站终于测试完了,新建一个 PR 用于此篇博文,预览在哪里,预览在这里!! 开发者贡献关系网络 安装 R 包 if( ! "geomnet" %in% list.files(.libPaths()) ) install.packages("geomnet") 加载绘图的 R 包 library(magrittr) library(scales) library(ggplot2) library(geomnet) 数据获取和描述 下载数据 pdb <- tools::CRAN_package_db() 查看数据集 pdb 的大小 dim(pdb) #> [1] 13505 65 每个 R 包都有一个 DESCRIPTION 文件,顾名思义,即描述说明 R 包内容的文件,举例如 tools packageDescription('tools') #> Package: tools #> Version: 3.5.1 #> Priority: base #> Title: Tools for Package Development #> Author: R Core Team #> Maintainer: R Core Team <R-core@r-project.

Hello R Markdown

R Markdown Markdown1 R Markdown2 Pandoc’s Markdown3 You can embed an R code chunk like this: summary(cars) ## speed dist ## Min. : 4.0 Min. : 2 ## 1st Qu.:12.0 1st Qu.: 26 ## Median :15.0 Median : 36 ## Mean :15.4 Mean : 43 ## 3rd Qu.:19.0 3rd Qu.: 56 ## Max. :25.0 Max. :120 fit <- lm(dist ~ speed, data = cars) fit ## ## Call: ## lm(formula = dist ~ speed, data = cars) ## ## Coefficients: ## (Intercept) speed ## -17.