8000 Complex numbers not actually supported. · Issue #2187 · Rdatatable/data.table · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Complex numbers not actually supported. #2187

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

Closed
eliocamp opened this issue Jun 4, 2017 · 1 comment
Closed

Complex numbers not actually supported. #2187

eliocamp opened this issue Jun 4, 2017 · 1 comment

Comments

@eliocamp
Copy link
Contributor
eliocamp commented Jun 4, 2017

While you can create a data table with a complex column and you can manipulate tit, it doesn't work with expressions in i or in by.

library(data.table)
packageVersion("data.table")
#> [1] '1.10.5'

dt <- data.table(y = 1, x = complex(1, 1, 1))

dt[y == 1, x := x*0]
#> Error in `[.data.table`(dt, y == 1, `:=`(x, x * 0)): Unsupported type 'complex'
dt
#>    y    x
#> 1: 1 1+1i

dt[, x, by = y]
#> Error in `[.data.table`(dt, , x, by = y): Type 15 in .SD column 0

dt[, x := x*0]
dt
#>    y    x
#> 1: 1 0+0i
@arunsrinivasan
Copy link
Member

more or less a dup of #1444.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 43D6 comment
Projects
None yet
Development

No branches or pull requests

2 participants
0