%primes% | R Documentation |
When using the "primes"
method,
the last group might not have the size of the associated prime number
if there are not enough elements left. Use %primes%
to find this remainder.
size %primes% start_at
size |
Size to group (Integer) |
start_at |
Prime to start at (Integer) |
Remainder (Integer).
Returns 0
if the last group
has the size of the associated prime number.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other staircase tools:
%staircase%()
,
group_factor()
,
group()
Other remainder tools:
%staircase%()
# Attach packages
library(groupdata2)
100 %primes% 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.