mm_GetInterval: Create equallly spaced intervals.

View source: R/align.R

mm_GetIntervalR Documentation

Create equallly spaced intervals.

Description

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

Usage

mm_GetInterval(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_GetInterval(15) ## Symmetrical sequence from -1 to 1 with 0 in the middle.
mm_GetInterval(15, day0 = 8) ## The same sequence, explicitly specifying the midpoint

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


ehrlichd/moRphomenses documentation built on Nov. 19, 2023, 11:48 a.m.