Try this:
getS3method("print", "acf")
On Fri, Jan 21, 2011 at 11:02 AM, Bogaso Christofer <
bogaso.christofer@gmail.com> wrote:
> Hi friends, there is methods() function to see the all available methods
> for
> a particular function, for example:
>
>
>
> > head(methods("print"))
>
> [1] "print.acf" "print.anova"
"print.aov" "print.aovlist"
> "print.ar" "print.Arima"
>
>
>
> In this list, there are some functions which are asterisked like
> print.acf(). How can I see the contents of those function?
>
>
>
> Thanks and regards,
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
[[alternative HTML version deleted]]
You can also use:
getAnywhere("functionName")
On Fri, Jan 21, 2011 at 8:02 AM, Bogaso Christofer
<bogaso.christofer at gmail.com> wrote:> Hi friends, there is methods() function to see the all available methods
for
> a particular function, for example:
>
>
>
>> head(methods("print"))
>
> [1] "print.acf" ? ? "print.anova" ?
"print.aov" ? ? "print.aovlist"
> "print.ar" ? ? ?"print.Arima"
>
>
>
> In this list, there are some functions which are asterisked like
> print.acf(). How can I see the contents of those function?
>
>
>
> Thanks and regards,
>
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
--
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Hi friends, there is methods() function to see the all available methods for a particular function, for example:> head(methods("print"))[1] "print.acf" "print.anova" "print.aov" "print.aovlist" "print.ar" "print.Arima" In this list, there are some functions which are asterisked like print.acf(). How can I see the contents of those function? Thanks and regards, [[alternative HTML version deleted]]
Thanks Jim and Henrique for your replies. I would like to know why some
particular functions are asterisked? What is the pros and cons while making
a typical UDF asterisked? How can I make a typical function asterisked? For
example print.anova() is not asterisked however print.acf() is. How can I
make print.anova() asterisked?
Thanks and regards,
-----Original Message-----
From: jim holtman [mailto:jholtman at gmail.com]
Sent: 21 January 2011 18:20
To: Bogaso Christofer
Cc: r-help at r-project.org
Subject: Re: [R] How to look into the asterisked function?
You can also use:
getAnywhere("functionName")
On Fri, Jan 21, 2011 at 8:02 AM, Bogaso Christofer
<bogaso.christofer at gmail.com> wrote:> Hi friends, there is methods() function to see the all available
> methods for a particular function, for example:
>
>
>
>> head(methods("print"))
>
> [1] "print.acf" ? ? "print.anova" ?
"print.aov" ? ? "print.aovlist"
> "print.ar" ? ? ?"print.Arima"
>
>
>
> In this list, there are some functions which are asterisked like
> print.acf(). How can I see the contents of those function?
>
>
>
> Thanks and regards,
>
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
--
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?