Skip to content
Prev 4718 / 15274 Next

Simple and fast date format conversion

Zanella Marco wrote:
You're working with returns, so you need to aggregate your returns.  You 
can't treat them like prices and simply grab the last price in your 
observation period.

Do you have a price (value) series available?  If not, convert it to a 
wealth index first.

With either price data or a wealth index, you can use to.period in xts 
to convert.  If you need returns for your analysis, the wealth index is 
fungible back to returns.

Further clarification would benefit from a sample data series.

Regards,

    - Brian