我需要使用bind_row组合数据帧列表,然而,我得到了下面的消息;我不明白这个错误



data01 <- bind_rows (list_all, .id = "id")bind_rows()错误:! 不能组合Introduction$...12GROSS OUTPUT$...12。运行rlang::last_error()查看错误发生的位置。

data01 <- bind_rows (list_all)bind_rows()错误:! 不能组合..1$...12..3$...12。运行rlang::last_error()查看错误发生的位置。rlang: last_error ()& lt;错误/vctrs_error_incompatible_type>bind_rows()错误:! 不能合并..1$...12..3$...12.


回溯:

  1. dplyr: bind_rows (list_all)
  2. vctrs:: vec_rbind (! !点,.names_to = .id)运行rlang::last_trace()查看完整的上下文。

rlang:: last_trace ()& lt;错误/vctrs_error_incompatible_type>bind_rows()错误:! 不能合并..1$...12..3$...12.


回溯:▆

  1. └─dplyr:: bind_rows (list_all)
  2. ├─dplyr::: fix_call (vec_rbind (! !.names_to = .id)
  3. │└─基地:withCallingHandlers(…)
  4. └─vctrs:: vec_rbind (! !.names_to = .id)
  5. └─vctrs `<fn>`()
    
  6. └─vctrs::vec_default_ptype2(...)
    
  7. └─vctrs::stop_incompatible_type(...)
    
  8. └─vctrs:::stop_incompatible(...)
    
  9. └─vctrs:::stop_vctrs(...)
    
  10. └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call))
    

对于不同的数据帧,该列的值可能不同。对于一个数据帧可以是整型,对于另一个数据帧可以是字符。

最新更新