Append one or more from/to pairs to the existing connections for a
variable. from and to may be either single strings or character vectors
of equal length (one connection per element).
Details
No deduplication is performed — duplicates of an existing pair will appear
twice in the resulting table. Endpoints not found in data[[variable]]
produce a warning but are still appended.
Examples
if (FALSE) { # \dontrun{
data <- example_aniframe()
data <- add_connections(data, from = "head", to = "neck")
data <- add_connections(
data,
from = c("neck", "neck"),
to = c("shoulder_right", "shoulder_left")
)
} # }