q_to_a_xts: takes a quarterly xts object with multiple columns and...

View source: R/ar_conversion.R

q_to_a_xtsR Documentation

takes a quarterly xts object with multiple columns and converts to annual

Description

need to give the type of conversion as argument, for example could do b <- q_to_a_xts(suma, type="sum") this function uses the q_to_a function that I've defined above, but then applys it to all of the columns of a xts object. To convert using an average, set type="mean".

Usage

q_to_a_xts(x, type)

Arguments

type

aranryan/arlodr documentation built on Jan. 21, 2025, 2:11 p.m.