I have a nasty problem that bugs me a lot.
I have a list (dataframe) that looks like this:
a b c
1 1.00234 1.05667 1.00198
I want to round the numbers of this dataframe to two decimal number. But the trailing zeros have to be kept like the following:
a b c
1 1.00 1.06 1.00
I tried the round and printf() and so on, it doesn't work, because my data is a list. It can't be coerced. However, I'd like to keep my data structure.
Anyone of you know how to solve this? I appreciate it very much!!!
data.frame? Or alistof data frames?