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。
论据 xa 数值或复数向量。以正数或复数为底:计算对数的底数。默认为 e=exp(1)。
论据
xa 数值或复数向量。以正数或复数为底:计算对数的底数。默认为 e=exp(1)。
所以你log用第二个参数 10 (你想要的基础)调用函数。
log
例如:
> log(10,10) [1] 1