Hello - I've pre-cleaned and uploaded 12 Excel spreadsheets named df1 -df12 and have tried some different commands to combine the 12 spreadsheets with identical column headers so I can run ggplot and produce visualizations. Getting error messages when I run combined_rows <- bind_rows and failing that, merged_rows <- bind_rows. I clicked on the error link but don't understand what its meaning is. Is there a syntax I can use to compare and verify that all 12 spreadsheets' column headers are identical? I've looked and they look perfect but maybe I've missed something. Once they've been verified, what is the best command syntax to run? To simplify my syntax, should I just focus on the 2 or 3 columns I'm interested in visualizations? Here is the domain: Posit Cloud
and here is the coding and error messages in case the domain doesn't work for you (thanks in advance):
combined_df <- bind_rows(df1, df2, df3, df4, df5, df6, df7, df8, df9, df10, df11, df12)
Error in bind_rows()
:
! Can't combine ..1$...8
<datetime> and ..12$...8
.
Run rlang::last_trace()
to see where the error occurred.
rlang::last_trace()
<error/vctrs_error_ptype2>
Error inbind_rows()
:
! Can't combine..1$...8
<datetime> and..12$...8
.
and here is the coding and error message for the other command I ran:
merged_df <- bind_rows(df1, df2, df3, df4, df5, df6, df7, df8, df9, df10, df11, df12)
Error in bind_rows()
:
! Can't combine ..1$...8
<datetime> and ..12$...8
.
Run rlang::last_trace()
to see where the error occurred.
rlang::last_trace()
<error/vctrs_error_ptype2>
Error inbind_rows()
:
! Can't combine..1$...8
<datetime> and..12$...8
.
Backtrace:
▆
- └─dplyr::bind_rows(df1, df2, df3, df4, df5, df6, df7, df8, df9, df10, df11, df12)
Run rlang::last_trace(drop = FALSE) to see 10 hidden frames.