Description Usage Arguments Value
View source: R/empirical_NA_tools.R
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).
1 2 3 4 | resolve_NA(
scan.list,
mode = c("directed", "undirected", "max", "min", "upper", "lower", "plus", "vector")
)
|
scan.list |
a |
mode |
character scalar, See |
a list of binary adjacency matrix where resolvable NAs are changed depending on the
chosen mode:
scan[i,j] = NA & scan[j,i] = 0 => scan[i,j] = 0 when mode = "min"
scan[i,j] = NA & scan[j,i] = 1 => scan[i,j] = 1 when mode = "max"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.