Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
R log 関数と少し混乱しています: log(10) = 1 in base 10 ですが、これを R log(10) = 2.302585 に入力すると、R log 関数で base を暗黙的に伝える方法が質問です。
引数 x 数値または複素ベクトル。正または複素数の底: 対数が計算される底。デフォルトは e=exp(1) です。
引数
x 数値または複素ベクトル。正または複素数の底: 対数が計算される底。デフォルトは e=exp(1) です。
したがってlog、2 番目のパラメーター 10 (必要なベース) を使用して関数を呼び出します。
log
例えば:
> log(10,10) [1] 1