[R] can't find functions?

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Feb 15 12:49:14 CET 1999


> Date: Mon, 15 Feb 1999 11:00:04 +0000
> From: Peter Ho <peter at esb.ucp.pt>
> X-Accept-Language: en
> To: r-help at stat.math.ethz.ch
> Subject: [R] can't find functions?
> 
> 
> Dear all,
> 
> I have recently installed R0.63.2. under Win95. and with it a number of
> contributed packages. The instructions for adding packages was to unzip
> the files into the "directory rw0632\library. They are then available
> for use."
> 
> However, when I tried one of the function below, I got a Error: couldn't
> find function "cclust".
> 
> 
> x<-rbind(matrix(rnorm(100,sd=0.3),ncol=2),
> matrix(rnorm(100,mean=1,sd=0.3),ncol=2))
> cl<-cclust(x,2,20,verbose=TRUE,method="kmeans")
> Error: couldn't find function "cclust"
>  plot(cl,x)
> Error: Object "cl" not found
> 
> This happened with all contributed packages I added to both R0.63.1 and
> R0.63.2.

`available for use' means that you may use the _package_, with
`library': it does not mean that the package contents are available for
use.

library(clust)
cl<-cclust(x,2,20,verbose=TRUE,method="kmeans")

Incidentally, if this is what you want to do, use

library(mva)

and use kmeans() instead.


-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list