[R-SIG-Finance] Performance Analytics

Brian G. Peterson brian at braverock.com
Tue Jun 23 23:29:35 CEST 2009


Sean Jewell wrote:
> Error in fromchar(x) :
>   character string is not in a standard unambiguous format
>   
PerformanceAnalytics tries to be generous in what it accepts, but it 
seems that you are using a data.frame without rownames and not (any) 
time series class (we prefer xts for most things because it is a time 
series class that is as fast as matrix even for large data sets).  As 
such, your first column looks like the character string of the 
timestamp.  If you made those the rownames instead, everything would 
likely work fine.  The other (better) option is to convert your data to 
xts (or some other time series class) before attempting your analysis.  
This is good advice in any case, as data.frame should really only be 
used for factor data.

Regards,

  - Brian

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-SIG-Finance mailing list