阅读背景:

在数据上使用geosphere distm函数。表来计算距离

来源:互联网 

I've created a data.table in that has 6 columns. My data.table has a columns compairing two locations: Location 1 and Location 2. I'm trying to use the distm function to calculate the distance between the locations on each row, creating a 7th column. The distm package in the geosphere package requires two different vectors for each lat/long combo to be calculated against. My code below does not work, so I'm trying to figure out how to provide vectors to the function.I've created a data.table in that has 6 columns




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: