So I perform the following code and the result comes out erroneous in both the single line interface and R studio:
-8%%3
[1] 1
It should be negative -2 but it comes out positive 1. I don't understand, I have deleted and re-installed R multiple times but the error still persists. If I type the following code, the error still persists but the sign becomes negative
8%%-3
[1] -1
Please help!!!!