[R] The log function problem

From: Shubha Vishwanath Karanth <shubhak_at_ambaresearch.com>
Date: Thu, 12 Jun 2008 12:02:25 +0530


Hi R,  

Please see the below commands. The question is I can see the value of log(2) before loading the package fcalendar in R. But after loading the package, the 'log' function doesn't work. How to solve this problem? Also note that the function code differs before and after downloading the packages.  

> log

function (x, base = exp(1)) .Primitive("log")  

> log(2)

[1] 0.6931472  

> library(fCalendar)

Loading required package: fEcofin
Rmetrics, (C) 1999-2006, Diethelm Wuertz, GPL fCalendar: Time, Date and Calendar Tools

> library(fCalendar)
 

> log

function (x, base = exp(1))
{
UseMethod("log")
}

> log(2)

Error in .Internal(log(x)) : no internal function "log"    

Many Thanks for your help,

Shubha

This e-mail may contain confidential and/or privileged i...{{dropped:13}}



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 12 Jun 2008 - 08:16:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Jun 2008 - 09:30:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive