Skip to content

Could not find function "lead" with latest version of dplyr #3456

@md0u80c9

Description

@md0u80c9

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))

Metadata

Metadata

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions