Dear R users,

according the help(log), the function
log2(x) should give the natural logarithm of x.

I expect in case of x=2 to to get 0.6931, however, R gives me 1 as a result.

Similar, logb(2,2) gives 1 again.

I'm wondering if I have missed something ?

Yours
Frank


-- Frank Mattes, MD e-mail: [EMAIL PROTECTED] Department of Virology fax 0044(0)207 8302854 Royal Free Hospital and tel 0044(0)207 8302997 University College Medical School London

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to