List the unit IDs in a model
qe_units.RdReturns the unit IDs present in a ModelData list or qe_plot object.
Unit IDs are the values in the model's id_col column (default
"ENA_UNIT"), typically in compound form "Group::Name" as produced by
rENA / tma. Pass any of these strings to qe_edges() as the unit
argument to plot an individual unit's edge network.
Arguments
- x
A
qe_plotobject or aModelDatalist fromqe_model_data()/qe_extract().
Value
A character vector of unit IDs, in the order they appear in the
model's points table. Returns character(0) if the model has no points
frame.
Examples
if (FALSE) { # \dontrun{
model <- qe_extract(set)
qe_units(model)
#> [1] "FirstGame::steven z" "FirstGame::akash v"
#> [3] "SecondGame::steven z" ...
# Plot one unit's edge network alongside both group means:
qe_plot(set) |>
qe_group() |>
qe_points() |>
qe_edges(unit = "FirstGame::steven z")
} # }