[R] the format of the result

From: <khobson_at_fd9ns01.okladot.state.ok.us>
Date: Sat 02 Jul 2005 - 00:23:23 EST

See ?sprintf

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



mailto:khobson@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:
http://www.okladot.state.ok.us/materials/materials.htm



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 02 00:27:03 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:10 EST