to_grid: Bin Values

Description Usage Arguments Value Author(s)

Description

Bin x into a grid, where x may have different densities.

Usage

1
to_grid(x, y, grid)

Arguments

x

Vector of locations

y

Vector of densities/counts along x

grid

Grid over which to bin the values.

Value

A vector of length length(grid) - 1 being the number of things in each interval.

Author(s)

Rich FitzJohn


traitecoevo/Revolve documentation built on May 31, 2019, 7:42 p.m.