Hi all,
The following line of code works perfectly in the stable version of dplyr. In the development version however (with the newer version of bindrcpp) this generates an error:
Error in mutate_impl(.data, dots) : could not find function "lead"
I'm not aware of lead being affected by the tidy select changes so is the function being parsed differently in some way?
importedData <- dplyr::mutate(importedData,
InpatientReadmission = cumsum(
(dplyr::lead(.data$TeamCode,
n = 1,
default = -1) > 0) & (.data$TeamCode < 0) * 1))