%staircase% | R Documentation |
When using the "staircase"
method,
the last group might not have the size of the second last
group + step size. Use %staircase%
to find this remainder.
size %staircase% step_size
size |
Size to staircase (Integer) |
step_size |
Step size (Integer) |
Remainder (Integer).
Returns 0
if the last group has the size of the second last group + step size.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other staircase tools:
%primes%()
,
group_factor()
,
group()
Other remainder tools:
%primes%()
# Attach packages
library(groupdata2)
100 %staircase% 2
# Finding remainder with value 0
size = 150
for (step_size in c(1:30)){
if(size %staircase% step_size == 0){
print(step_size)
}}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.