Re: [R] Non-visible functions are asterisked

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Sat, 08 Mar 2008 10:54:40 -0500

On 08/03/2008 10:48 AM, Muenchen, Robert A (Bob) wrote:
> Dear R-Helpers,
>
> I suspect I'm about to ask a FAQ, but I haven't been able to find an
> answer in the FAQ, AItR or an R Site Search. When I look at the methods
> of summary (below) it says, "Non-visible functions are asterisked". I
> looked at the help file for summary.princomp, which did not comment on
> it being non-visible. I ran its help file example, which printed visible
> output. I did not notice how it differed from other functions, like
> summary.data.frame that is not marked non-invisible. What does the

> non-visible mean?
>
> Thanks,
> Bob
>

>> methods(summary)

> [1] summary.aov summary.aovlist
> [3] summary.connection summary.data.frame
> [5] summary.Date summary.default
> [7] summary.ecdf* summary.factor
> [9] summary.glm summary.infl
> [11] summary.lm summary.loess*
> [13] summary.manova summary.matrix
> [15] summary.mlm summary.nls*
> [17] summary.packageStatus* summary.POSIXct
> [19] summary.POSIXlt summary.ppr*
> [21] summary.prcomp* summary.princomp*
> [23] summary.stepfun summary.stl*
> [25] summary.table summary.tukeysmooth*
>
> Non-visible functions are asterisked

Try this:
 > summary.princomp
Error: object "summary.princomp" not found  > summary.data.frame
function (object, maxsum = 7, digits = max(3, getOption("digits") -

     3), ...)
{

  etc.

R can find summary.princomp when it runs UseMethod, but it's hidden in the stats namespace, so you need to use "stats:::summary.princomp" to see it.

Duncan Murdoch



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 Sat 08 Mar 2008 - 16:08:00 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 Sat 08 Mar 2008 - 16:30:19 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