Skip to content

lead() and lag() aren't type stable on x 😱  #6330

Description

@DavisVaughan
library(dplyr)

x <- 1:5

typeof(lag(x, default = 0))
#> [1] "double"

Created on 2022-07-13 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions