[R] max.col

Martin Maechler maechler at stat.math.ethz.ch
Fri Nov 19 17:55:45 CET 1999


>>>>> "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"


    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.
You write 
    library(<pkg>)
for every package <pkg> you want,
in the case of VR, one of
   MASS, spatial, nnet, class

{{and I *do* second  a proposition for allowing
  package(..) to be used synonymously to library(..) !!
}}

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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