resolve_NA: Replace 'NA's with known values when they can be determined...

Description Usage Arguments Value

View source: R/empirical_NA_tools.R

Description

Replace NAs with known values when they can be determined Internal use. When the "min" or "max" algorithm is chosen to convert directed networks into undirected one, some NAs can be deduced from their transposed values (cf. below).

Usage

1
2
3
4
resolve_NA(
  scan.list,
  mode = c("directed", "undirected", "max", "min", "upper", "lower", "plus", "vector")
)

Arguments

scan.list

a scanList object. See objects returned by simunet()

mode

character scalar, See simunet()

Value

a list of binary adjacency matrix where resolvable NAs are changed depending on the chosen mode:


R-KenK/SimuNet documentation built on Oct. 22, 2021, 1:27 a.m.