gdComplete {ganGenerativeData} | R Documentation |
Complete incomplete data record
Description
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.
Usage
gdComplete(dataRecord, useSearchTree = FALSE)
Arguments
dataRecord |
List containing incomplete data record |
useSearchTree |
Boolean value indicating if a search tree should be used. |
Value
List containing completed data record
Examples
## Not run:
gdRead("gd.bin")
gdComplete(list(5.1, 3.5, 1.4, NA))
## End(Not run)
[Package ganGenerativeData version 2.0.2 Index]