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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to