A causal_idx
list is a list with integer vector entries which represent
indices in some other object (like a data frame). Generically it can
be used to represent a graph structure, such as an interference network
or a collection of matched objects.
The main feature of causal_idx
is that the index references are preserved
through slicing and reordering. Indices that no longer refer to elements
(because of subsetting) are set to NA.
Arguments
- x
For
causal_idx()
andnew_causal_idx()
: A list of indicesFor
is_causal_idx()
: An object to testFor
as_causal_idx()
: An object to coerce