gdComplete | R Documentation |
Search for first nearest neighbor in generative data for incomplete data record containing NA values. Found row in generative data is then used to replace NA values in inccomplete data record. This function calls gdKNearestNeighbors() with parameter k equal to 1.
gdComplete(dataRecord, useSearchTree = FALSE)
dataRecord |
List containing incomplete data record |
useSearchTree |
Boolean value indicating if a search tree should be used. |
List containing completed data record
## Not run:
gdRead("gd.bin")
gdComplete(list(5.1, 3.5, 1.4, NA))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.