I am looking at data from a device that spends much of its time underwater. When it surfaces, it gets a GPS fix (lat & lon) and then sinks (losing its GPS fix) and continues gathering data again until its next surfacing. This results in a lot of NA values in the data for the lat lon values and they don't coincide with the underwater data readings.
I'd like to create a curtain plot of the data but I'll need some interpolated lat/lon values to do a rough plot of the subsurface data against for a 3D map.
How can I fill in some linearly interpolated values for the many NA's that occur in between GPS fixes in R? They are in numeric DD.DDDDD format.
An example of the data can be found at: http://modata.ceoe.udel.edu/public/gps_example_data.csv