Hi all,

Lets say I have:

DT <- data.table(x=1:10, y=1:10)

Both x and y are of type integer.

> sapply(DT,class)
        x         y
"integer" "integer"

Now, suppose I do:

class(DT$x) <- "numeric"

What I would expect to happen is either A) a message saying you can't
convert a key to numeric or B) convert it to numeric and lose the key
argument. What happens though is that x stays as an integer but no
error is given.  Is that intended?

-Chris
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

Reply via email to