0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

R でのパッケージに関するコマンドまとめ

Posted at

はじめに

自身の備忘録のために R のパッケージに関するコマンドをまとめた。(忘れればggると出てくるが…。)

パッケージの追加、使用、削除

下記コマンドの<packagename>を必要に応じて書き換えればよい。

# パッケージの追加
install.packages("<packagename>")

# パッケージの使用
library(<packagename>)

# パッケージの削除
remove.packages("<packagename>")

install と remove には""が必要なことに注意する。

パッケージの確認

# 自身のPCにインストール済みのパッケージ一覧の取得。
library()

# 現在読み込まれてるパッケージ一覧の取得
serach()

# パッケージのバージョン確認
packageVersion("<packagename>")

おわりに

とりあえず使ったコマンドをつらつらと書いていった。必要があれば追記していきたいと思う。

0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?