Page 1 of 1

% ?

Posted: Sun Apr 05, 2020 5:31 pm
by reason180
When I begin to use the Computed Variable dialog, I see the example: ROW() % 1

I can figure out, by trying it, what the % operator seems to be doing. But where can I find the relevant documentation (for jamovi specifically, or for R)?

Re: % ?

Posted: Tue Apr 07, 2020 11:44 am
by jonathon
ah, sorry, the percentage is the modulus operator.

https://en.wikipedia.org/wiki/Modulo_operation

but for the record, ROW() % 1, is a terrible example...

i sometimes use ROW() % 2 in filters to filter every second row.

jonathon