Learn R Programming

bnstruct (version 1.0.6)

has.imputed.data: check if a BNDataset contains impited data.

Description

Check whether a BNDataset object actually contains imputed data.

Usage

has.imputed.data(x)

# S4 method for BNDataset has.imputed.data(x)

Arguments

See Also

has.raw.data, raw.data, imputed.data

Examples

Run this code
# NOT RUN {
x <- BNDataset()
has.imputed.data(x) # FALSE

x <- read.dataset(x, "file.header", "file.data")
has.imputed.data(x) # FALSE, since read.dataset() actually reads raw data.

x <- impute(x)
has.imputed.data(x) # TRUE
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab