% ?

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
User avatar
reason180
Posts: 274
Joined: Mon Jul 24, 2017 4:56 pm

% ?

Post 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)?
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: % ?

Post 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
Post Reply