[R-sig-Geo] Impute missing value using k nearest neighbour

Metastate Metastate metastate at gmail.com
Tue Aug 25 05:04:44 CEST 2015


Hi,

I have a data set with location ID (FIPS), latitude and longitude of the
location, V1 to v3 that are some features for relevant location. The
dataset have more than 3000 locations.  Please see the attached file for a
small sample. In the sample file, you can see there are some missing values
for V2 and V3 at FIPS of 26089. Does anyone know any r package that can
impute the missing values based on k nearest neighbor using the distance
matrix calculated from latitude and longitude?

Really appreciation for your kindly help or suggestion.

Meta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20150824/449c7e8c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.csv
Type: text/csv
Size: 487 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20150824/449c7e8c/attachment.bin>


More information about the R-sig-Geo mailing list