makeCompleteMonths: Makes sure the last month in an xts object is a full trading...

Description Usage Arguments Value Examples

View source: R/fa_utilities.R

Description

Makes sure the last month in an xts object is a full trading month This is used when converting to monthly returns. If the last price was not at the end of a month (e.g. 2/13/2018) a return will still be produced for that month (Feb 2018). We may not want to use a partial month for some calculations such as when calculating the return for the last x months, so we eliminate those types of months.

Usage

1

Arguments

x

xts object

Value

xts object

Examples

1

rexmacey/fundAnalysis documentation built on Dec. 2, 2019, 5:50 p.m.