I would like to limit the number of decimals when a data frame is imported. My .txt input have 16 decimals to each row in collumn \"Value\". My dataframe look like that:
I have a dataframe of 13 columns where the 1st 2 columns are integers and the rest of the columns are numeric with decimals. I want the decimal values alone to be restricted to 2 decimal places. Applying @G. Grothendieck 's method above, a simple solution below:
DF[, 3:13] <- round(DF[, 3:13], digits = 2)