?substitute
On Fri, 21 Feb 2003, Mark Marques wrote:
>
> First thanks to the fast answer regarding the "Clustplot
problem"...
> Regarding a new problem:
>
> for (i in 1:5)
> {
> z <- clara(adata, i)
> plot(z)
> }
>
> in the above code in the plot screen I get something like:
> clusplot(clara(x=adata,i)) in title
> in the 2nd type of plot I get
> silhouete plot of clara(x=adata,k=i,samples=50)
>
> How can I pass the real value to the i?
> What kind of command "transform" a var into their own value
?
>
> I tried using something like ~i , %i , but with no luck...
> Comments ?
> Any undocumented feature ?
It's documented, both in R and in all good books on S programming.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595