I am currently trying to export a panel dataset in R to a CSV file. When exporting I receive the following error message in R:
Error in `is.data.frame()`:
! Can't recycle `value` (size 6) to size 4.
Backtrace:
1. utils::write.csv(merge_long, "Merge_Long.csv")
5. utils::write.table(...)
14. tibble:::`[<-.tbl_df`(`*tmp*`, needconv, value = `<named list>`)
After the supposed export, I receive an empty CSV file in my Explorer.
I once displayed which data object my panel dataset "Merge-Long" has. Unfortunately, I no longer know what I can/should do.
> class(merge_long)
[1] "panel_data" "grouped_df" "tbl_df" "tbl" "data.frame"
head_df <- head(merge_long), and check if it fails for head_df too? If yes, run dput() on it, and edit your question to add the output to it. 2. Try using readr::write_csv() instead