plus_minus: Get vector surrounding number

View source: R/math_funcs.R

plus_minusR Documentation

Get vector surrounding number

Description

Get a vector of numbers from (x-n) to (x+n).

Usage

plus_minus(x, n)

Arguments

x

Integer, the number at the center of the vector

n

Integer, the number of places to expand the vector on either side of x

Value

Numeric vector

Examples

plus_minus(4, 2)

BIO-RSG/oceancolouR documentation built on Feb. 2, 2025, 2:01 a.m.