summarize_over_shifts: Loops over the given grid shifts and runs the summarizer on...

Description Usage Arguments Value

View source: R/jitter.R

Description

The problem is that the inner loop can be slow, so we separate the loop logic for testing that it can shift properly and accumulate results.

Usage

1
summarize_over_shifts(shift_cnt, summarizer)

Arguments

shift_cnt

The number of shifts in x and y, so the loop length is shift_cnt * shift_cnt.

summarizer

A function that takes the current shift fraction and return a summary.

Value

a data.frame with the results


dd-harp/population_comparison_bioko documentation built on Feb. 28, 2021, 11:05 p.m.