R log Function

R log Function log() function computes natural logarithms (Ln) for a number or vector. log10 computes common logarithms (Lg).log2 computes binary logarithms (Log2). log(x,b) computes logarithms with base b. >log(5)     #ln5 [1] 1.609438   >log10(5)    #lg5 [1] 0.69897   >log2(5)    #log25 [1] 2.321928   >log(9,base=3)  #log39 = 2 [1] 2 Note base is the second … Continue reading R log Function

Advertisements