In python there's the decimal
module whereby you can store decimal values without fear of falling into the floating point trap. Does R
have a similar package?
In particular I'm looking for a way to save an R object to an arrow table/parquet file where one or more columns are Decimal type.
If I do
abc=data.table(a=c(1.23,2.34,3.45))
as_arrow_table(abc, schema=schema(field('a', decimal(3,2))))
I get Error: NotImplemented: Extend