[R] getAnywhere

Duncan Murdoch murdoch at stats.uwo.ca
Fri Sep 21 19:24:39 CEST 2007


On 9/21/2007 12:16 PM, Giovanni Petris wrote:
> Hello,
> 
> How can I see a function called "+.dlm"?
> 
>> methods("+")
> [1] +.Date   +.dlm*   +.POSIXt
> 
>    Non-visible functions are asterisked
>> getAnywhere("+.dlm")
> Error in grep(pattern, x, ignore.case, extended, value, fixed, useBytes) : 
> 	invalid regular expression '+\.dlm'

Oh, by the way:  I'm assuming you're using the dlm package, and that's 
where +.dlm lives.  If so you can see the definition by

get("+.dlm", environment(is.dlm))

The "environment(is.dlm)" tells get to look in the private environment 
attached to the is.dlm function, which happens to be where "+.dlm" lives.

Duncan Murdoch



More information about the R-help mailing list