Open AshkanTalebloo opened 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) }
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)){
Error in coredata(eerData[[cc]]) : could not find function "coredata"
Do you have loaded the zoo package? It's marked as a dependency in BGVAR and should automatically be loaded when loading the package.
Error in coredata(eerData[[cc]]) : could not find function "coredata"