chiaoyi
1
df_lag2 <- left_join(df.post, df.pre %>% select(customer_id, month, kwh_lag), by = c("customer_id", "month"), copy=F)
It says:
Error: This tidyselect interface doesn't support predicates yet.
Contact the package author and suggest using eval_select()
.
What does this mean? How should I do?
If you're just attempting to join the two data frames, your call to left_join
should look something like this:
df_lag2 <- df.post %>%
left_join(df.pre, by = c("customer_id", "month"), copy = FALSE) %>%
select(customer_id, month, kwh_lag)
It's hard to say for sure without seeing the data. If this doesn't solve your issue, maybe you could post a reprex?
system
Closed
3
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.