0

I want to read more details about the new function in data.table v 1.8.11, after reading the link

I tried ?melt.data.table as pointed in the above link. But there's no documents..

No documentation for melt.data.table?in specified packages and libraries: you could try ??melt.data.table?

Here's my sessionInfo()

R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] data.table_1.8.11

Did I miss something?

EDIT On Jan20 2014

** Problems Still Not Solved**

I tried unistalled the data.table and deleted the library directory.

And then installed using the precompiled for windows in this link

> install.packages("~/Downloads/data.table_1.8.11.zip", repos = NULL)
Warning in install.packages :
  package 憕/Downloads/data.table_1.8.11.zip?is not available (for R version 3.0.2)
Installing package into 慍:/Users/James/R/win-library/3.0?(as 憀ib?is unspecified)
package 慸ata.table?successfully unpacked and MD5 sums checked

The sessionInfo() is the same after reinstalling, and I put all the information here. Still the ?melt.data.table not working.

Community
  • 1
  • 1
Bigchao
  • 1,746
  • 3
  • 15
  • 31

2 Answers2

3

[Edit by Matt] In turns out the data.table homepage was misleading (now fixed) and the Windows .zip on that page was 5 months old.

The correct way to install from R-Forge is

install.packages("data.table", repos="http://R-Forge.R-project.org"). 

Then the problem is solved and the documentation for ?melt.data.table is available.

Matt Dowle
  • 58,872
  • 22
  • 166
  • 224
Bigchao
  • 1,746
  • 3
  • 15
  • 31
0

Sorry this belongs in a comment but it's too long...

You might want to try re-installing data.table 1.8.11 (I found it here). When I do that, then start a new R session and:

library(data.table)
# data.table 1.8.11  For help type: help("data.table")

sessionInfo()
# R version 3.0.2 (2013-09-25)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
#
# locale:
# [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
# [4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    
#
# attached base packages:
# [1] stats     graphics  grDevices utils     datasets  methods   base     
#
# other attached packages:
# [1] data.table_1.8.11
#
# loaded via a namespace (and not attached):
# [1] plyr_1.8       reshape2_1.2.2 stringr_0.6.2  tools_3.0.2 

Note the bit at the end. It looks like data.table 1.8.11 loads reshape2, which probably contains melt.data.table(...). Did you truncate your sessionInfo, or were they not loaded?

jlhoward
  • 58,004
  • 7
  • 97
  • 140
  • `reshape2` does not contain any `data.table` methods. `data.table` just builds on the S3 generic (for `reshape2:::melt` atm) from it. – Arun Jan 19 '14 at 20:22
  • @jlhoward, I put all the information here, it seems that they were not loaded. – Bigchao Jan 20 '14 at 04:55