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"]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to