[R] the format of the result

khobson@fd9ns01.okladot.state.ok.us khobson at fd9ns01.okladot.state.ok.us
Fri Jul 1 16:23:23 CEST 2005

See ?sprintf

#e.g. Replace your prop line with:
prop<-sprintf("%.2f%%", prop.table(ta)*100)

mailto:khobson at odot.org
Kenneth Ray Hobson, P.E.
Oklahoma DOT - QA & IAS Manager
200 N.E. 21st Street
Oklahoma City, OK  73105-3204
(405) 522-4985, (405) 522-0552 fax

Visit our website at:

More information about the R-help mailing list