I have a minor technical problem:
I would like to specify the number of decimal places of whole numbers. For example I have the number "5000". After a mathematical operation in R, I would like to read "5000.0000".
I tried my best with the usual weapons of choice like "round" and "digit", but these functions are not strict enough for whole numbers.
Is there a way to circumvent R's default options?
Comment: I am aware that you can convert the number to a character class with respective decimal places, but I need a number class for a logical operation.
Best and many thanks!