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
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
2 matches
Mail list logo