From: Chuck Cleland (ccleland@optonline.net)
Date: Fri 28 Jun 2002 - 20:46:28 EST
Message-id: <3D1C3E84.4EB5F6BF@optonline.net>
j.logsdon@lancaster.ac.uk wrote:
> In MASS(2) P26 for S-Plus you can write:
>
> ordered(income)<-c("Lo","Mid","Hi")
>
> but in R 1.5.0 you get the response to such an instruction:
>
> Error: couldn't find function "ordered<-"
Try this:
income <- ordered(income, levels=c("Lo", "Mid", "Hi"))
Chuck Cleland
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:34 EST