- 1. Coercing to character (score: 1)
- Author: asanquer@virbac.fr
- Date: Tue, 6 Sep 2005 14:33:39 +0200
- I've got a problem when I coerce a numeric value to a character: I loose some decimal digits after the decimal point. Example: [1] "3.45" "3.4" I really want to keep the 2 decimal digits. Does someo
- /archives/html/s-news/2005-09/msg00010.html (6,955 bytes)
- 2. Re: Coercing to character (score: 1)
- Author: "Dimitris Rizopoulos" <dimitris.rizopoulos@med.kuleuven.be>
- Date: Tue, 6 Sep 2005 14:48:29 +0200
- you could try format(), e.g., x <- c(3.45, 3.40) format(x) see ?format for more info and options. I hope it helps. Best, Dimitris -- Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of
- /archives/html/s-news/2005-09/msg00012.html (8,901 bytes)
- 3. Re: Coercing to character (score: 1)
- Author: "Richard M. Heiberger" <rmh@temple.edu>
- Date: Tue, 6 Sep 2005 08:54:51 -0400
- [1] "3.45" "3.40" [1] 3 Warning messages: The 'colNames' argument of exportData() is ignored for this export file type. Column names will NOT be exported. in: openDataForWrite(file = file, type = ty
- /archives/html/s-news/2005-09/msg00013.html (7,144 bytes)
This search system is powered by
Namazu