get中出错(" hulls2iso.rgeos",1):object' hulls2iso.rgeos'未找到

时间:2016-01-26 10:04:40

标签: object get environment-variables

我使用以下函数创建了一个lhs对象:

am321.lhs <- lxy.lhs(am321.lxy.every4th, k=24, s=0.07, kmin=12, save.hulls=TRUE)

但是,当我尝试通过以下调用创建isopleth时,我收到错误。我已粘贴下面的控制台输出:

am321.lhs <- lhs.iso.add(am321.lhs)

使用最近邻选择模式:固定k 构建船体和船体指标......

am321.pts26934.k24.s0.07.kmin12
  Found a suitable set of nearest neighbors 
  Identifying the boundary points for each parent point 
  |++++++++++++++++++++++++++++++++++++++++++++++++++| 100%
  Converting boundary points into polygons
  |++++++++++++++++++++++++++++++++++++++++++++++++++| 100%
  Calculating area and perimeter...Done.
  Calculating the time span of each hull...Done.
  Identifying enclosed points...Done.
  Computing density isopleths 
Error in get("hulls2iso.rgeos", 1) : object 'hulls2iso.rgeos' not found

如果有任何帮助,我将不胜感激。

谢谢你 Karpa

1 个答案:

答案 0 :(得分:0)

我最近遇到了同样的错误,得到了Andy Lyons的以下建议:

您在包中遇到了错误。请将软件包更新到版本1.40(或更高版本),它应该可以使用。

检查包版本

packageVersion("tlocoh")

更新包(如果包已经加载,您可能需要将其分离或重新启动R进行更新)

update.packages(oldPkgs="tlocoh", repos="http://R-Forge.R-project.org")