Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault caused by broken data.frame #1425

Closed
TobiasMadsen opened this issue Sep 28, 2015 · 0 comments
Closed

Segfault caused by broken data.frame #1425

TobiasMadsen opened this issue Sep 28, 2015 · 0 comments
Assignees
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@TobiasMadsen
Copy link

I was a bit unsure whether to post this issue or if it's a case of "gunshot injury of foot stemming from aiming at foot and pulling the trigger". Anyway the following code produces a segfault

library(dplyr)
df <- data.frame(x1 = rep(1:3, times = 3), x2 = 1:9)
df$x3 <- df %>% mutate(x3 = x2) # Should have been df <- df %>% mutate(x3 = x2)
# df$x3 is now a data.frame
df <- df %>% group_by(x1) %>% summarise(x4 = mean(x3))
@TobiasMadsen TobiasMadsen changed the title Segfault Segfault caused by broken data.frame Sep 28, 2015
@hadley hadley added the bug an unexpected problem or unintended behavior label Oct 21, 2015
@hadley hadley added this to the 0.5 milestone Oct 21, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants