cal_factory_xts: Function factory for calculation.

Description Usage Arguments Value Examples

View source: R/calculate_xts.R

Description

Function factory for calculation.

Usage

1
cal_factory_xts(fun_num, fun_idx, fun_itv)

Arguments

fun_num

A function to transform a numeric vector.

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_log <- cal_factory_xts(
function(num) log(num),
function(idx) idx,
function(itv) itv
)

## End(Not run)

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