[R] R is converting arg input to scientific notation, which is bad!

2014-06-19 Thread efridge
Hello, Firstly, real new to R here. I have a function intended to evaluate the values in columns spread over many tables. I have an argument in the function that allows the user to input what sequence of tables they want to draw data from. The function seems to work fine, but when the user inputs

Re: [R] R is converting arg input to scientific notation, which is bad!

2014-06-20 Thread efridge
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