Hello everyone,

 

I have been following along with the PerformanceAnalytic "Charts and Tables
Overview" document
(http://cran.r-project.org/web/packages/PerformanceAnalytics/vignettes/PA-ch
arts.pdf).  

 

When I use the syntax provided in Figure 13, I get this error: 

 

Error in checkData(R, method = "xts") : 

  The data cannot be converted into a time series.  If you are trying to
pass in names from a data object with one column, you should use the form
'data[rows, columns, drop = FALSE]'.  Rownames should have standard date
formats, such as '1985-03-15'. 

 

I don't know if I am doing something wrong, as I am relatively new to R, or
if the provided syntax is driving this error.  I have had no other errors.  

 

The syntax in particular: 

 

> table.CAPM(managers[trailing36.rows, c(manager.col, peers.cols)],

+ managers[trailing36.rows, 8, drop = FALSE], Rf = managers[trailing36.rows,

+ Rf.col, drop = FALSE]

 

All of the data frames seem to contain the appropriate data.  

 

Any suggestions would be welcome.

 

Regard,

David


	[[alternative HTML version deleted]]

