Hi All, We're interested in finding other users of R in pharmaceutical companies. Please reply if you are or know of someone who is. -Greg Gregory R. Warnes, Ph.D. Pfizer Global Research and Development LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This must be a FAQ, but I can't find the answer: I have a factor 'okk':> table(okk)okk Other STORKAGE SKELLEFTEA FALMARK BOLE NEAR_TOWN 14064 560 346 526 332 34 Now I want to put the cases in 'NEAR_TOWN' into the 'Other' category', so I try:> okk <- ifelse(okk == "NEAR_TOWN", "Other", okk) > table(okk)okk 1 2 3 4 5 Other 14064 560 346 526 332 34> is.factor(okk)[1] FALSE This is not what I intended. I can do what I want the hard way (i.e., by converting okk to character an then back again) but there must be something simpler? Thanks, G?ran -- G?ran Brostr?m tel: +46 90 786 5223 professor fax: +46 90 786 6614 Department of Statistics http://www.stat.umu.se/egna/gb/ Ume? University SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Apparently Analagous Threads
- Documentation detail [was: Merging factor levels.]
- Re: 80-page Pharma complimentary report-Emerging Business models in Pharma (PR#7847)
- request for help on statistical applications in pharma
- plot() with type="s" and lty=2 (PR#2630)
- Error in the inverse of a diagonal matrix?