checkRet: Check return or price time-series

Description Usage Arguments Details Value See Also

Description

Check return or price time-series

Usage

1
checkRet(ret, arrange_date = TRUE, is_tidy = FALSE)

Arguments

ret

time-series data.frame or tibble

arrange_date

boolean to sort time-series by date in ascending order

Details

ret is a data.frame or tibble of time-series data with dates in the first column labeled 'date'. This function will check to see if the time-series is in the proper structure. If the the time-series is not properly structured this function will attempt to force the correct structure.

Value

Properly specified time-series as data.frame or tibble or return an error message if the time-series cannot be properly specified.

See Also

Other return time-series: changeFreq(), getIncept(), priceToRet(), rebal(), retToPrice()


alejandro-sotolongo/InvMgmt documentation built on Dec. 18, 2019, 3:33 a.m.