'无法找到签名'“y”的函数'X'的继承方法'

Arn*_*Jac 0 interpolation r

当尝试使用 R\ 的 gstat 包中的 idw 函数进行插值时,不断弹出错误。我让它运行并以某种方式修复了它,但是在更改小东西时错误不断弹出。一旦我明白错误是什么,我也许可以自己解决它。有人可以详细说明以下错误吗?

\n\n

\'无法找到签名 \xe2\x80\x98"y"\xe2\x80\x99 的函数 \xe2\x80\x98X\xe2\x80\x99 的继承方法

\n\n

谢谢!

\n

Jam*_*orn 5

这也可能是由命名空间冲突引起的。例如,我加载了hashdata.table库,并且它们都有copy函数。跑步

\n\n
> copy(DT) \n
Run Code Online (Sandbox Code Playgroud)\n\n

就给data.tableError in (function (classes, fdef, mtable) : unable to find an inherited method for function \xe2\x80\x98copy\xe2\x80\x99 for signature \xe2\x80\x98"data.table"\xe2\x80\x99。解决方案是指定命名空间:

\n\n
> data.table::copy(DT)\n
Run Code Online (Sandbox Code Playgroud)\n