problems with vctrs/dplyr packages in R
yairamitai opened this issue · comments
yairamitai commented
Hi, I'm trying to reshape my data from wide to long. I am using the reshape command mainly because I have more than one column in the new data that should be long. I'm getting the following error:
Backtrace:
▆
- ├─stats::reshape(...)
- │ └─stats (local) reshapeLong(...)
- │ ├─base::do.call(...)
- │ └─base (local)
<fn>
(...) - │ └─dplyr (local) rbind(deparse.level, ...)
- │ └─dplyr::bind_rows(...)
- │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())
- │ └─vctrs (local)
<fn>
() - │ └─vctrs (local) vec_cast.grouped_df.grouped_df(...)
- │ └─vctrs:::gdf_cast(x, to, ...)
- │ └─dplyr::grouped_df(df, vars, drop = drop)
- │ └─dplyr:::compute_groups(data, vars, drop = drop)
- │ └─dplyr:::dplyr_locate_sorted_groups(group_vars)
- │ └─vctrs::vec_locate_sorted_groups(x, nan_distinct = TRUE)
- └─rlang:::stop_internal_c_lib(...)
- └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame)
When I tried to write a reprex for my data, the command actually worked. Even when I reinstall the packages "vctrs" and "dplyr," the command works again, but other commands like drop_na
suddenly don't. I'm quite confused. I would appreciate some help!
Davis Vaughan commented
Unfortunately it is quite hard for us to guess at the problem without a reprex 😢