Find nearest points of latitude and longitude from different data sets with different length

前端 未结 5 2187
你的背包
你的背包 2020-12-19 08:24

I have two data set of different stations. The data are basically data.frames with coordinates, longitudes and latitudes. Given the first data set (or vice versa), I want to

5条回答
  •  情书的邮戳
    2020-12-19 09:03

    I don't exactly know what you want, but maybe this gives you some hints
    if you want to get the min value for each column

      dd <- as.data.frame(dd)
      sapply(dd, min)
      paste(rownames(dd), ":", apply(dd,2,which.min)) #or
    

提交回复
热议问题