period_variable: get period variables with same return value

View source: R/utils.R

period_variableR Documentation

get period variables with same return value

Description

get period variables with same return value

Usage

period_variable(
  x,
  period,
  range = c(0, period),
  range.inclusion = c("left", "both", "right", "neither"),
  simplify = F
)

Arguments

x

a vector of variables in one period

period

the period

range

the range in which variables (usually with the same values with x) will be returned

range.inclusion

left or right inclusion for range

simplify

return list or not, see sapply

Value

a vector

Examples

period_variable(pi, 2*pi, c(-pi, 5*pi))


zzwch/crosslink documentation built on Aug. 27, 2023, 5:57 p.m.