Learn R Programming

ganGenerativeData (version 2.1.6)

gdComplete: Complete incomplete data record

Description

Search for first nearest neighbor in normalized 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)

Value

List containing completed denormalized data record

Arguments

dataRecord

List containing an incomplete unnormalized data record

useSearchTree

Boolean value indicating if a search tree should be used.

Examples

Run this code
if (FALSE) {
gdRead("gd.bin")
gdComplete(list(5.1, 3.5, 1.4, NA))}

Run the code above in your browser using DataLab