mm_get_interval: Create equallly spaced intervals.

View source: R/align.R

mm_get_intervalR Documentation

Create equallly spaced intervals.

Description

Create a sequence from -1:1 of specified length. MIDpoint (day0) can be

Usage

mm_get_interval(days, day0 = NULL)

Arguments

days

The number of days(divisions) fit between -1 and 1 (inclusive)

day0

If NULL (default), the median integer will be calculated. This produces symmetrical ranges when days = odd number. Can be specified for asymmetric ranges.

Examples

mm_get_interval(15) ## Symmetrical sequence from -1 to 1 with 0 in the middle.
mm_get_interval(15, day0 = 8) ## The same sequence, explicitly specifying the midpoint

mm_get_interval(15, day0 = 3) ## 15 divisions with an asymmetric distribution.


ehrlichd/moRphomenses documentation built on March 10, 2024, 3:06 a.m.