gdComplete: Complete incomplete data record

View source: R/RcppExports.R

gdCompleteR 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)

ganGenerativeData documentation built on Nov. 19, 2023, 5:12 p.m.