我有一个包含3个Million+行的数据集,该数据集的一部分包含纬度和经度坐标,我需要针对这些坐标运行检查,带回国家,然后将该国家与数据集中已有的国家进行比较。 在一个较老的帖子(Fastest way to determine COUNTRY from millions of GPS coordinates [R])中使用地图软件包的建议很棒,但是这个软件包给我留下了大约190,000个NA值,即使坐标是100%有效的(我已经在其他在线服务中检查过了)。 一些条目应该匹配,但不匹配的示例: 北纬1.3346258 51.96007 1.34711853 51.96614 1.3346945
我想进口Data.Map。在将映射添加到项目中的package.yaml之后,我使用堆栈,如下所示:
name: space-age
version: 1.2.0.6
dependencies:
- base
library:
exposed-modules: SpaceAge
source-dirs: src
ghc-options: -Wall
dependencies:
- map
# - foo # List here the packages you
# - bar # want to use in your solutio