Re: [R] I have a problem with the log2 function

2003-10-29 Thread A.J. Rossini
Frank Mattes <[EMAIL PROTECTED]> writes: > 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 mi

[R] I have a problem with the log2 function

2003-10-29 Thread Frank Mattes
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