LoginSignup
1
1

More than 5 years have passed since last update.

【メモ】R のデフォルトパッケージを調べる #rstatsj

Last updated at Posted at 2015-06-03
R
library(dplyr)
installed.packages() %>% .[.[, "Priority"] %in% "base", ] %>% row.names
結果
 [1] "base"      "compiler"  "datasets"  "graphics"  "grDevices"
 [6] "grid"      "methods"   "parallel"  "splines"   "stats"    
[11] "stats4"    "tcltk"     "tools"     "utils"
R
installed.packages() %>% .[.[, "Priority"] %in% "recommended", ] %>% row.names
結果
 [1] "boot"       "class"      "cluster"    "codetools"  "foreign"   
 [6] "KernSmooth" "lattice"    "MASS"       "Matrix"     "mgcv"      
[11] "nlme"       "nnet"       "rpart"      "spatial"    "survival"

追記

「デフォルトパッケージ」という言葉に突っ込みが入りました。

この記事では、R をインストールした時点ですでに入っているパッケージのことで、install.packages() しなくても library() でロードできるやつという意味で使ってました。
まぎらわしくてごめんなさい。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1