mboeck11 / BGVAR

Toolbox for the estimation of Bayesian Global Vector Autoregressions in R.
27 stars 20 forks source link

data conversion error #12

Open AshkanTalebloo opened 2 years ago

AshkanTalebloo commented 2 years ago

data(eerData) time <- as.character(seq.Date(as.Date("1995-01-01"),as.Date("2013-10-01"),by="quarter")) for(cc in 1:length(eerData)){

  • x <- coredata(eerData[[cc]])
  • rownames(x) <- time
  • write.xlsx(x = x, file="./excel_eerData.xlsx", sheetName = names(eerData)[cc],
  • col.names=TRUE, row.names=TRUE, append=TRUE)
  • }

Error in coredata(eerData[[cc]]) : could not find function "coredata"

mboeck11 commented 2 years ago

Do you have loaded the zoo package? It's marked as a dependency in BGVAR and should automatically be loaded when loading the package.