Skip to content
Prev 8458 / 15274 Next

PerformanceAnalytics - Style Analysis- plotting R squared over time

Phil,

I think the error message is clear - the data series you're using as the
"fund" data, Rfund.z, isn't being recognized as a format that is
convertible to a time series object (for conversion into an xts object). 
Look at ?as.xts and consider constructing xts objects for both timeseries.
 Or you might use Return.read from PerformanceAnalytics to load the series
in from a csv file.

pcc