You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I might be wrong, but I think that some versions ago data.table was able to handle complex numbers (#3690). In the CRAN version, I see that I can't dcast when value.var points to a complex vector.
library(data.table)
dt<- CJ(x=1:10, y=letters[1:3])
dt[, z:=complex(real= rnorm(.N), imaginary= rnorm(.N))]
dcast(dt, x~y, value.var="z")
#> Error in dcast.data.table(dt, x ~ y, value.var = "z"): Unsupported column type in fcast val: 'complex'
The text was updated successfully, but these errors were encountered:
eliocamp
changed the title
Possible regresion: dcast doesn't work with complex numbers.
Possible regression: dcast doesn't work with complex numbers.
Dec 18, 2020
MichaelChirico
changed the title
Possible regression: dcast doesn't work with complex numbers.
dcast doesn't work with complex numbers in value.var.
Jan 1, 2021
I might be wrong, but I think that some versions ago data.table was able to handle complex numbers (#3690). In the CRAN version, I see that I can't
dcast
whenvalue.var
points to a complex vector.Expected output:
Created on 2020-12-18 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: