Skip to content

Inconsistent results when overwriting and reusing variable in summarise() #2404

@krlmlr

Description

@krlmlr
library(dplyr)
library(tibble)
a <- as_tibble(seq(1:10))
for (i in 1:50) print( a %>% summarise(value = mean(value), sd = sd(value)) )

On my machine the sd result is sometimes 1.73, sometimes Inf. Something very strange is going on here.

#2169 (comment), CC @nuskcalb.

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions