我尝试使用使用 cancensus 包下载的数据来实现 Gavin Simpson 的这篇出色的博客文章,但在尝试评估游戏时出现以下错误:
Error in smooth.construct.mrf.smooth.spec(object, dk$data, dk$knots) :
mismatch between nb/polys supplied area names and data area names
In addition: Warning message:
In if (all.equal(sort(a.name), sort(levels(k))) != TRUE) stop("mismatch
between nb/polys supplied area names and data area names") :
the condition has length > 1 and only the first element will be used
我在这里发布了我的最小工作示例。任何提示将不胜感激。
最好的,