The missingness of an edge is controlled by its na
attribute (which
is mandatory for all edges); network.naedgecount
returns the number
of edges for which na==TRUE
. The is.na
network method
produces a new network object whose edges correspond to the missing
(na==TRUE
) edges of the original object, and is thus a covenient
method of extracting detailed missingness information on the entire network.
The network returned by is.na
is guaranteed to have the same base
network attributes (directedness, loopness, hypergraphicity, multiplexity,
and bipartite constraint) as the original network object, but no other
information is copied; note too that edge IDs are not preserved by
this process (although adjacency obviously is). Since the resulting object
is a network
, standard coercion, print/summary, and other
methods can be applied to it in the usual fashion.
It should be borne in mind that “missingness” in the sense used here
reflects the assertion that an edge's presence or absence is unknown,
not that said edge is known not to be present. Thus, the na
count for an empty graph is properly 0, since all edges are known to be
absent. Edges can be flagged as missing by setting their na
attribute to TRUE
using set.edge.attribute
, or by
appropriate use of the network assignment operators; see below for an
example of the latter.