#author("2021-08-09T17:39:39+09:00","external:moriat","moriat")
#author("2022-09-02T14:45:05+09:00","external:moriat","moriat")
#topicpath

* Rの特殊な演算子 [#h6c2d0ab]
- Rは演算子が定義できるようで、パッケージを入れると自動的にその演算子もついてくる、ということがある。
** はじめに [#r5a633de]
- 調べ方~
普通に、R のヘルプでわかる。ただし、`` (back quotation)で囲う必要がある。
- 参考URL~
-- [[Rの%in%演算子とかmatch関数とか>https://staffblog.amelieff.jp/entry/2021/05/17/090000]]
** 見慣れない演算子 [#zca2da33]
*** パイプ演算子 %>% (magrittrパッケージ) [#d424e056]
- 機能~
左側の実行結果を、右側の関数の第一引数に与える。~
~
- 参考URL
-- [[第24章 パイプ演算子%>%について>https://shohei-doi.github.io/quant_polisci/pipe.html]]~
~
*** matching 演算子 %in% [#b95748e1]
- 機能~
match() 関数のお手軽版~
~
- 参考URL
-- [[dplyr — 高速data.frame処理>https://heavywatal.github.io/rstats/dplyr.html]]
-- [[Rの%in%演算子とかmatch関数とか>https://staffblog.amelieff.jp/entry/2021/05/17/090000]]~
~
*** formula 演算子 ~ [#d22d82f7]
- 機能~
公式を定義するときに使う?formula オブジェクトを使うときになったら調べる。~
~
- 参考URL
-- [[[R] 予測モデルを作るには formula を活用せよ>https://ill-identified.hatenablog.com/entry/2017/04/30/004258]]~
~

トップ   編集 差分 添付 複製 名前変更 リロード   新規 検索 最終更新   ヘルプ   最終更新のRSS