cal_factory_zoo: Function factory for calculation zoo class.

Description Usage Arguments Value Examples

View source: R/calculate_zoo.R

Description

Function factory for calculation zoo class.

Usage

1
cal_factory_zoo(fun_num, fun_idx, fun_itv)

Arguments

fun_num

A function to transform a numeric vector or matrix of zoo class.

fun_idx

A function to transform a numeric vector representing time.

fun_itv

A function to transform a string representing interval.

Value

A function to transform a tsibble into a tsibble or a tibble.

Examples

1
2
3
4
5
6
7
8
## Not run: 
tq_rollmean <- cal_factory_zoo(
function(num) zoo::rollmean(num, ...),
function(idx) idx,
function(itv) itv
)

## End(Not run)

mitsuoxv/tqr documentation built on Nov. 14, 2021, 7:18 p.m.