I have 4 data frames which I am trying to export 4 data frames into same workbook
list_of_dataframes <- list(
"Scoring" ~ store_score,
"Store" ~ store_ware,
"Brand" ~ brand_ware,
"Article" ~ article_ware
)
openxlsx::write.xlsx(list_of_dataframes, "filename.xlsx")
Error : Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class ‘"formula"’ to a data.frame
Please help in resolving this.