db.locate.correct {RGeostats}  R Documentation 
Correct the vector of locator names
db.locate.correct(locators, ranks, flag.locnew = FALSE)
locators 
The vector of locator names which describe the variables contained in a

ranks 
The ranks of the locators recently modified. 
flag.locnew 
When TRUE, for a given locator, all attributes which are initially set to this locator are undefined first. 
The principle is to check that the set of locators are consistent with respect to the locator naming convention, i.e.:
Each locator must correspond to a known key,
The locators of a given type must be numbered consistently. If a locator of a given type corresponding to the rank 'n' is present, then all the locators of the same type numbered from 1 to 'n1' must be found.
If an error is found, one or several locators must be corrected. The locators whose rank correspond to one of the elements in 'ranks' are not modified.
The vector of corrected locators