Is there a way in R to do rational arithmetic? I need something like:
> rat(1, 2) - rat(1, 3)
1/6
R doesn't have standard rational data type. And I can not find any package which implement it.
Is there a way in R to do rational arithmetic? I need something like:
> rat(1, 2) - rat(1, 3)
1/6
R doesn't have standard rational data type. And I can not find any package which implement it.