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

rbind_list kills R when called with data frames containing complex values #933

Closed
e-pet opened this issue Jan 29, 2015 · 1 comment
Closed

rbind_list kills R when called with data frames containing complex values #933

e-pet opened this issue Jan 29, 2015 · 1 comment
Assignees

Comments

@e-pet
Copy link

@e-pet e-pet commented Jan 29, 2015

Running e.g.

df1 <- data.frame(r = c(1+1i, 2-1i))
df2 <- data.frame(r = c(1-1i, 2+1i))
bind_rows(df1,df2)

yields "R Session aborted - R encountered a fatal error. The session was terminated."

@romainfrancois romainfrancois self-assigned this Jan 30, 2015
@konkam
Copy link

@konkam konkam commented Mar 16, 2015

Similar error when using summarize, group_by with complex values :

a = data.frame(r = 1i*rnorm(1000), k = sample(1:5, 1000, replace = T))
a %>% group_by(k) %>% summarise(mean(r))

crashes R with

> *** caught segfault ***
> address (nil), cause 'memory not mapped'
>Traceback:
>1: .Call("dplyr_summarise_impl", PACKAGE = "dplyr", df, dots)
>2: summarise_impl(.data, dots)
>3: summarise_.tbl_df(.data, .dots = lazyeval::lazy_dots(...))
>4: summarise_(.data, .dots = lazyeval::lazy_dots(...))
>5: summarise(., mean(r))
>6: function_list[[k]](value)
>7: withVisible(function_list[[k]](value))
>8: freduce(value, `_function_list`)
>9: `_fseq`(`_lhs`)
>10: eval(expr, envir, enclos)
>11: eval(quote(`_fseq`(`_lhs`)), env, env)
>12: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
>13: a %>% group_by(k) %>% summarise(mean(r))

@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants