Re: [R] Object "silhouette.default" not found. But I knew that it is there.

About this list Date view Thread view Subject view Author view Attachment view

From: Uwe Ligges (ligges@statistik.uni-dortmund.de)
Date: Wed 26 May 2004 - 02:38:47 EST


Message-id: <40B37697.7010806@statistik.uni-dortmund.de>

Wolski wrote:

> Hi!
>
> Thanks! You right. Have not realised it.
>
> I do not wanted to call the function but I wanted to see the function definition. Its a great feature of R to be able to do it.
> I knew I cant do it because the function object is not in the namespace.
> Ive been confronted with the reverse side of namespaces.
>
> On the other hand:
> ?silhouette.default works.
> It would be nice to have a way to display to source without going into the library directory.

I just told you (and Fritz did so last week in his keynote lecture) to
specify the namespace explicitly using the ":::" operator as in:

  cluster:::silhouette.default

and you will see the source, so what's the point?

Uwe

>
>
> Sincerely
> Eryk
>
> PS.
>
>
> *********** REPLY SEPARATOR ***********
>
> On 5/25/2004 at 6:17 PM Uwe Ligges wrote:
>
>
>>Wolski wrote:
>>
>>
>>>Hi!
>>>
>>>
>>>
>>>
>>>>library(cluster)
>>>
>>>In this lib a function called silhoutte.default is defined
>>>than on the R prompt it type
>>>
>>>
>>>>silhouette.default
>>>
>>>Error: Object "silhouette.default" not found
>>>R1.9.0
>>>The same error are at R1.8.1
>>>And I knew that a function silhoutte.default are present.
>>>
>>>But the same piece of code works in R1.6.2
>>>
>>>???
>>
>>Well, namespaces have been introduced in the meantime, and you have
>>learned at the useR to call the generic silhouette() directly
>>or to use
>> cluster:::silhouette.default
>>to get the code.
>>
>>Uwe Ligges
>>
>>
>>
>>
>>>Eryk
>>>
>>>Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic
>>>Ihnestrasse 63-73 14195 Berlin 'v'
>>>tel: 0049-30-83875219 / \
>>>mail: wolski@molgen.mpg.de ---W-W----
>>
>>http://www.molgen.mpg.de/~wolski
>>
>>>______________________________________________
>>>R-help@stat.math.ethz.ch mailing list
>>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>>PLEASE do read the posting guide!
>>
>>http://www.R-project.org/posting-guide.html
>>
>>______________________________________________
>>R-help@stat.math.ethz.ch mailing list
>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>
>
> Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic
> Ihnestrasse 63-73 14195 Berlin 'v'
> tel: 0049-30-83875219 / \
> mail: wolski@molgen.mpg.de ---W-W---- http://www.molgen.mpg.de/~wolski
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:12 EST