错误:找不到函数"overlay"重新安装后 [英] Error: could not find function "overlay" after reinstall

查看:81
本文介绍了错误:找不到函数"overlay"重新安装后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我重新安装了PC,也重新安装了R,但是在运行R程序时却以某种方式出错:

I reinstalled my pc and also reinstalled R, but I somehow get an error when running my R program:

错误:找不到函数叠加层"

Error: could not find function "overlay"

在以前的安装中很好.

新的R版本是3.2.4.,因此我试图将版本降级到3.1.*和3.0.*,但这没有帮助.

The new R version is 3.2.4., so I tried to downgrade the version to 3.1.* and 3.0.*, but this was not helpful.

我使用的图书馆是:

library(sp)
library(maptools)
library(gstat)
library(rgdal)
library(sm)
library(png)

sp似乎包含 .我不知道该怎么办.

It seems like overlay is included in the sp package. I don't know what to do.

推荐答案

overlay已过时,请参见 http://www.inside-r.org/packages/cran/sp/docs/overlay (以及其中的注释"部分).它已替换为over,似乎可以克服与overlay相关的一组不一致之处. Edzer为 sp中的地图叠加层和空间聚合写了一个很好的小插图使用over函数-您可能应该看看它.

overlay is deprecated, see http://www.inside-r.org/packages/cran/sp/docs/overlay (and section 'Note' therein). It has been replaced with over that seemingly overcomes a set of inconsistencies associated with overlay. Edzer wrote a nice vignette about Map overlay and spatial aggregation in sp using the over function - you should probably have a look at it.

这篇关于错误:找不到函数"overlay"重新安装后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆