datazoom.amazonia
datazoom.amazonia copied to clipboard
IPS README example #2 error
As I tried to run the available code, I encountered the following error message:
Error in dplyr::bind_cols():
! Can't recycle ..1 (size 3865) to match ..2 (size 773).
Run rlang::last_error() to see where the error occurred.
rlang::last_error() <error/vctrs_error_incompatible_size> Error in
dplyr::bind_cols(): ! Can't recycle..1(size 3865) to match..2(size 773).
Backtrace:
- datazoom.amazonia::load_ips(...)
- dplyr::bind_cols(year, df)
- vctrs::vec_cbind(!!!dots, .name_repair = .name_repair)
Run
rlang::last_trace()to see the full context.
rlang::last_trace() <error/vctrs_error_incompatible_size> Error in
dplyr::bind_cols(): ! Can't recycle..1(size 3865) to match..2(size 773).
Backtrace: ▆
- ├─datazoom.amazonia::load_ips(...)
- │ └─dplyr::bind_cols(year, df)
- │ ├─dplyr:::fix_call(vec_cbind(!!!dots, .name_repair = .name_repair))
- │ │ └─base::withCallingHandlers(...)
- │ └─vctrs::vec_cbind(!!!dots, .name_repair = .name_repair)
- └─vctrs::stop_incompatible_size(...)
- └─vctrs:::stop_incompatible(...)
-
└─vctrs:::stop_vctrs(...) -
└─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call))
I tried running the code with multiple time periods and the issue only happened when trying to cover three or more years.