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

Description Usage Arguments See Also Examples

Description

Check whether a BNDataset object actually contains imputed data.

Usage

1
2
3
4
has.imputed.data(x)

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

Arguments

x

a BNDataset.

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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

## End(Not run)

tavazzie/bnstructScore documentation built on Dec. 23, 2021, 7:47 a.m.