[R] R is converting arg input to scientific notation, which is bad!
efridge
ele0044 at uah.edu
Fri Jun 20 18:52:45 CEST 2014
The digits argument for formatC is for sigfigs. I found a solution within the
formatC argument list. When I added the format arg to formatC:
filenames <- paste0(formatC(id, digits = 0, width = 3, format = "d", flag =
"0"), ".csv")
..it miraculously worked. d is the format value for integers. Hope someone
else can learn from this!
--
View this message in context: http://r.789695.n4.nabble.com/R-is-converting-arg-input-to-scientific-notation-which-is-bad-tp4692389p4692459.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list