The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Geographic Data » Adjust the displacement of GPS point
Adjust the displacement of GPS point [message #22219] Mon, 15 February 2021 01:23 Go to next message
arup is currently offline  arup
Messages: 1
Registered: July 2019
Dear all,

I am trying to adjust the DHS point (GPS) data using the R script, provided by "Guidelines on the use of DHS GPS data". But unable to create the buffer around GPS points.
I have used the code below,

pdsc <- disc(radius = offset.dist[i], centre = c(coordinates(pts)[i,1],

I can't understand what would be the value of "i"?.....what is the meaning of "i" here?
Re: Adjust the displacement of GPS point [message #22270 is a reply to message #22219] Mon, 22 February 2021 11:45 Go to previous message
tfish-DHS is currently offline  tfish-DHS
Messages: 48
Registered: August 2017
Location: Maryland, USA

`i` refers to an entry in ` 1:nrow(pts)` which is being iterated through with a for loop


Previous Topic: Merging child recode with DHS GPS data
Next Topic: Commune and sector in Rwanda 1992 DHS
Goto Forum:

Current Time: Sun Aug 14 03:24:05 Coordinated Universal Time 2022