Keep significant digits in double numerical columns of a data.table.
keepSignifDig(inDT, inDigits)
a data.table with time series in the long format.
an integer with the number of significant digits.
a data.table with numeric columns trimmed to the provided number of significant digits.
library(ARCOS)
library(data.table)
locdt = data.table(id = LETTERS[1:10],
x = runif(10))
locdtTrim = ARCOS::keepSignifDig(locdt, 2)