Add one or more compounds to a snapshot
add_compound.RdArguments
- snapshot
A Snapshot object.
- compound
A Compound object created with
create_compound(), or a list of such objects.
Value
The updated Snapshot object, returned invisibly.
Examples
if (FALSE) { # \dontrun{
snapshot <- load_snapshot("Midazolam") |>
add_compound(create_compound(name = "Drug X"))
snapshot <- load_snapshot("Midazolam") |>
add_compound(list(
create_compound(name = "Drug X"),
create_compound(name = "Drug Y")
))
} # }