beers_int: Beers interpolation, using ordinary or modified method.

Description Usage Arguments Value Examples

Description

Create 4 interpolated points between each pair of given values. With the ordinary method, the given data points given will be included unchanged in the interpolated list. With the modified method, some smoothing occurs, and only the first and last points given are guaranteed to appear unchanged in the interpolated list.

Usage

1
2
3

Arguments

points

A list of at least 6 numbers, eg, populations over time.

Value

A list with four extra interpolated points between each pair of given points.

Examples

1
2
3
4
# Interpolate population of UK (1950, 1955, 1960, 1965, 1970, 1975) to yearly points

beers_int_ordinary(c(50616014, 51123707, 52433157, 54303107, 55634935, 56211947))
beers_int_modified(c(50616014, 51123707, 52433157, 54303107, 55634935, 56211947))

mrc-ide/beers documentation built on Dec. 10, 2020, 12:10 a.m.