Forum: open_discussion


Test, just a test [ Reply ] By: Nobody on 2022-07-11 08:21 | [forum:49423] |
Njfhsjdwkdjwfh jiwkdwidwhidjwi jiwkdowfiehgejikdoswfiw https://gehddijiwfugwdjaidheufeduhwdwhduhdwudw.com/fjhdjwksdehfjhejdsdefhe |
RE: could not find function melt [ Reply ] By: Samir KC on 2018-01-21 14:16 | [forum:45584] |
HI, I update the data.table and now it is fine. Thanks, Samir |
RE: could not find function melt [ Reply ] By: Samir KC on 2018-01-21 13:09 | [forum:45583] |
HI, I think reshape2 is loaded internally by MSDem. After restarting the R-studio, I ran the following and got an error. > setwd("C:/Users/DELL/Dropbox/Nepal Projection") > library(MSDem) > datasets <- fread.msproj(model.patt = "np_SSP2") > res <- msproj(data = datasets, country = "np", nsx = "axmx", iPr = 18,detail.out = T) Error in melt(reclass.dt, measure.vars = m.vars) : could not find function "melt" |
RE: could not find function melt [ Reply ] By: Marcus Wurzer on 2018-01-21 13:02 | [forum:45582] |
Hi, the melt-function used is coming from the data.table-package, reshape2 is not needed. When you look up the documentation from data.table's melt using ?melt.data.table, you see that the authors say that "It is not necessary to load reshape2 anymore. But if you have to, then load reshape2 package before loading data.table." Maybe that's the source of the clash? Best, Marcus |
could not find function melt [ Reply ] By: Samir KC on 2018-01-21 12:21 | [forum:45581] |
Hi, I installed latest R (3.4.3) and Rstudio and when running the following, I get the message that the melt function is missing. > setwd("C:/Users/DELL/Dropbox/Nepal Projection") > library(MSDem) > #read the datasets > datasets <- fread.msproj(model.patt = "np_SSP2") > res <- msproj(data = datasets, country = "np", nsx = "axmx", iPr = 18,detail.out = T) Error in melt(reclass.dt, measure.vars = m.vars) : could not find function "melt" When I library(reshape2), then I get the following error, which I think comes from two melt functions data.table and reshape2. Error in x[j] : invalid subscript type 'list' |