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

Adding Column of NA to a Grouped Table Crashes R #1645

Closed
DarioS opened this issue Jan 29, 2016 · 0 comments
Closed

Adding Column of NA to a Grouped Table Crashes R #1645

DarioS opened this issue Jan 29, 2016 · 0 comments
Assignees
Labels
bug an unexpected problem or unintended behavior

Comments

@DarioS
Copy link

DarioS commented Jan 29, 2016

The example is :

library(dplyr)
dataset <- data_frame(A = 1:10, B = 10:1, group = factor(sample(LETTERS[25:26], 10, TRUE)))
dataset %>% group_by(group) %>% mutate(prediction = factor(NA))

It results in :

*** caught segfault ***
address 0xfffffffffffffffc, cause 'memory not mapped'

If the table is not grouped, then there is no R crash.

The R session is :

R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 15.10

other attached packages:
[1] dplyr_0.4.3.9000
@romainfrancois romainfrancois self-assigned this Feb 1, 2016
@romainfrancois romainfrancois added the bug an unexpected problem or unintended behavior label Feb 1, 2016
@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

2 participants