window_around: Centered numeric sequence

View source: R/tx_core.R

window_aroundR Documentation

Centered numeric sequence

Description

Creates a numerical sequence which is centered in the first argument and extends in leght of the second argument into both positive and negative directions.

Usage

window_around(position, windowLength)

Arguments

position

integer. Center of sequence

windowLength

integer. Length of both downstream and upstream flanks

Value

integer

Examples

# Numeric interval centered in 10, with 5 closest negative
# and positive integers
window_around(10, 5)

AngelCampos/tx_tools documentation built on Sept. 17, 2024, 1:27 a.m.