[R] max.col
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Fri Nov 19 18:40:46 CET 1999
On Fri, 19 Nov 1999, Martin Maechler wrote:
> >>>>> "JMor" == Morris, Jeffrey [OCDUS] <Morris> writes:
>
> JMor> I am trying to run, in R -Windows95, the example in MASS2,
> JMor> section 17.2. When I run predplot() on cush.lda I get
>
> >> predplot(cush.lda, "LDA")
> JMor> Error: couldn't find function "max.col"
>
> JMor> I get the plot OK, but within predict(), it balks on max.col
>
> You somehow didn't "attach" the MASS package properly :
> For me :
>
> > library(MASS)
> > find(max.col)
> [1] "package:MASS"
Or you have an older version of MASS (5.3), where max.col is in
library(nnet), and the ch17 script begins
# Chapter 17 Classification
library(MASS)
library(nnet)
options(width=65, digits=5, height=9999)
library(tree)
library(modreg)
Since you are using MASS2, you do need to check the scripts for R changes
(most of which have gone in MASS3).
> JMor> A more general question about using VR. Is there an easy way
> JMor> to use library on VR in general or do I have to move each into
> JMor> the library folder and load each separately.
This might be a question about installing on Windows. The current
VR61-4.zip can be unpacked directly in the rw0651\library directory,
but that was not true of earlier versions.
--
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