[R] data.table cant find function melt?
Ken Nussear
knussear at mac.com
Fri May 22 19:26:03 CEST 2015
Hi all, trying to use the melt function in data.table and I'm getting an
error....
Anyone seen this before or know how to fix it?
Thanks
str(Distdata)
Classes ‘data.table’ and 'data.frame': 828451 obs. of 3 variables:
$ Poly1 : int 50088 50088 50088 50088 50088 50088 50088 50088 50088
50088 ...
$ Poly2 : int 44884 11542 11543 11540 11541 11546 11547 11544 11545
11548 ...
$ Distance: int 788641 3794345 3652511 3915074 3895469 3639175 3644151
3648356 3646023 3615863 ...
- attr(*, ".internal.selfref")=<externalptr>
melt.data.table(Distdata, id.vars=Poly1, measure.vars=Poly2)
Error: could not find function "melt.data.table"
melt(Distdata, id.vars=Poly1, measure.vars=Poly2)
Error: could not find function "melt"]
More information about the R-help
mailing list